commands/opreator-sdk: command to autogenerate shell completions
Bash completions can be set up in your shell by running:
```bash
. <(operator-sdk completion bash)
```
`operator-sdk completion zsh` will generate zsh completions too!
@@ -31,6 +31,7 @@ func NewRootCmd() *cobra.Command {
cmd.AddCommand(NewBuildCmd())
cmd.AddCommand(NewGenerateCmd())
cmd.AddCommand(NewUpCmd())
+ cmd.AddCommand(NewCompletionCmd())
return cmd
}
