Merge pull request #612 from cdrage/fix-output-completion

Update `kompose completion`
This commit is contained in:
Tomas Kral
2017-05-22 12:55:05 +01:00
committed by GitHub
+6 -9
View File
@@ -12,18 +12,15 @@ import (
var completion = &cobra.Command{
Use: "completion SHELL",
Short: "Generate a bash auto completion file",
Long: `Generate a bash auto completion script.
Short: "Output shell completion code",
Long: `Generates shell completion code.
Auto completion supports both bash and zsh.
Auto completion supports both bash and zsh. Output is to STDOUT.
The output is to stdout.
source <(kompose completion bash)
source <(kompose completion zsh)
Examples:
$ source <(kompose completion bash)
$ source <(kompose completion zsh)
Will load the bash completion code.
Will load the shell completion code.
`,
RunE: func(cmd *cobra.Command, args []string) error {