mirror of https://github.com/knative/client.git
Hide completion command from help. (#263)
This commit is contained in:
parent
406ecd182d
commit
be24f7b89d
|
|
@ -30,6 +30,7 @@ func NewCompletionCommand(p *KnParams) *cobra.Command {
|
|||
completionCmd := &cobra.Command{
|
||||
Use: "completion",
|
||||
Short: "Output shell completion code (default Bash)",
|
||||
Hidden: true, // Don't show this in help listing.
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if completionFlags.Zsh {
|
||||
cmd.Root().GenZshCompletion(os.Stdout)
|
||||
|
|
|
|||
Loading…
Reference in New Issue