Hide completion command from help. (#263)

This commit is contained in:
Evan Anderson 2019-07-12 15:55:47 -07:00 committed by Knative Prow Robot
parent 406ecd182d
commit be24f7b89d
1 changed files with 1 additions and 0 deletions

View File

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