|
|
@ -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,
|
|
|
|