From be24f7b89de6b03d7c0ac78a5b897414710a7d83 Mon Sep 17 00:00:00 2001 From: Evan Anderson Date: Fri, 12 Jul 2019 15:55:47 -0700 Subject: [PATCH] Hide completion command from help. (#263) --- 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 0c8a13843..5ea127891 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)