[COMMENT]fix comment

Signed-off-by: Scaat Feng <scaat.feng@gmail.com>
pull/9065/head
Scaat Feng 4 years ago
parent 2323f8946f
commit 7c4932c485

@ -27,7 +27,7 @@ import (
) )
const completionDesc = ` const completionDesc = `
Generate autocompletions script for Helm for the specified shell. Generate autocompletion scripts for Helm for the specified shell.
` `
const bashCompDesc = ` const bashCompDesc = `
Generate the autocompletion script for Helm for the bash shell. Generate the autocompletion script for Helm for the bash shell.
@ -74,14 +74,14 @@ var disableCompDescriptions bool
func newCompletionCmd(out io.Writer) *cobra.Command { func newCompletionCmd(out io.Writer) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "completion", Use: "completion",
Short: "generate autocompletions script for the specified shell", Short: "generate autocompletion scripts for the specified shell",
Long: completionDesc, Long: completionDesc,
Args: require.NoArgs, Args: require.NoArgs,
} }
bash := &cobra.Command{ bash := &cobra.Command{
Use: "bash", Use: "bash",
Short: "generate autocompletions script for bash", Short: "generate autocompletion script for bash",
Long: bashCompDesc, Long: bashCompDesc,
Args: require.NoArgs, Args: require.NoArgs,
DisableFlagsInUseLine: true, DisableFlagsInUseLine: true,
@ -93,7 +93,7 @@ func newCompletionCmd(out io.Writer) *cobra.Command {
zsh := &cobra.Command{ zsh := &cobra.Command{
Use: "zsh", Use: "zsh",
Short: "generate autocompletions script for zsh", Short: "generate autocompletion script for zsh",
Long: zshCompDesc, Long: zshCompDesc,
Args: require.NoArgs, Args: require.NoArgs,
DisableFlagsInUseLine: true, DisableFlagsInUseLine: true,
@ -106,7 +106,7 @@ func newCompletionCmd(out io.Writer) *cobra.Command {
fish := &cobra.Command{ fish := &cobra.Command{
Use: "fish", Use: "fish",
Short: "generate autocompletions script for fish", Short: "generate autocompletion script for fish",
Long: fishCompDesc, Long: fishCompDesc,
Args: require.NoArgs, Args: require.NoArgs,
DisableFlagsInUseLine: true, DisableFlagsInUseLine: true,

@ -105,7 +105,7 @@ func (o *repoAddOptions) run(out io.Writer) error {
} }
} }
//Ensure the file directory exists as it is required for file locking // Ensure the file directory exists as it is required for file locking
err := os.MkdirAll(filepath.Dir(o.repoFile), os.ModePerm) err := os.MkdirAll(filepath.Dir(o.repoFile), os.ModePerm)
if err != nil && !os.IsExist(err) { if err != nil && !os.IsExist(err) {
return err return err

@ -167,7 +167,7 @@ func (o *searchRepoOptions) applyConstraint(res []*search.Result) ([]*search.Res
v, err := semver.NewVersion(r.Chart.Version) v, err := semver.NewVersion(r.Chart.Version)
if err != nil { if err != nil {
// If the current version number check appears ErrSegmentStartsZero or ErrInvalidPrerelease error and not devel mode, ingore // If the current version number check appears ErrSegmentStartsZero or ErrInvalidPrerelease error and not devel mode, ignore
if (err == semver.ErrSegmentStartsZero || err == semver.ErrInvalidPrerelease) && !o.devel { if (err == semver.ErrSegmentStartsZero || err == semver.ErrInvalidPrerelease) && !o.devel {
continue continue
} }

Loading…
Cancel
Save