From 168cff52fd062afd22ad7c22445735784957f148 Mon Sep 17 00:00:00 2001 From: Evan Anderson Date: Fri, 12 Jul 2019 15:16:46 -0700 Subject: [PATCH] Hide completion command from help. --- pkg/kn/commands/completion.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/kn/commands/completion.go b/pkg/kn/commands/completion.go index 0c8a13843f..5ea127891a 100644 --- a/pkg/kn/commands/completion.go +++ b/pkg/kn/commands/completion.go @@ -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)