Move shell completion generation into 'kubectl completion' command

This commit is contained in:
Dr. Stefan Schimanski
2016-04-03 19:24:58 +02:00
parent 77de942e08
commit a79a420fde
9 changed files with 119 additions and 74 deletions

View File

@@ -235,6 +235,7 @@ Find more information at https://github.com/kubernetes/kubernetes.`,
cmds.AddCommand(NewCmdVersion(f, out))
cmds.AddCommand(NewCmdExplain(f, out))
cmds.AddCommand(NewCmdConvert(f, out))
cmds.AddCommand(NewCmdCompletion(f, out))
if cmds.Flag("namespace") != nil {
if cmds.Flag("namespace").Annotations == nil {