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

@ -167,7 +167,7 @@ func (o *searchRepoOptions) applyConstraint(res []*search.Result) ([]*search.Res
v, err := semver.NewVersion(r.Chart.Version)
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 {
continue
}

Loading…
Cancel
Save