Extract several kubectl helpers from cmd/cmd.go

This commit is contained in:
fabianofranz
2014-11-10 15:09:32 -02:00
parent f3ad102fa6
commit c43637b73c
11 changed files with 170 additions and 144 deletions

View File

@@ -39,7 +39,7 @@ Examples:
$ cat pod.json | kubectl create -f -
<create a pod based on the json passed into stdin>`,
Run: func(cmd *cobra.Command, args []string) {
filename := getFlagString(cmd, "filename")
filename := GetFlagString(cmd, "filename")
if len(filename) == 0 {
usageError(cmd, "Must specify filename to create")
}