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

@@ -20,6 +20,7 @@ import (
"io"
"fmt"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl"
"github.com/spf13/cobra"
)
@@ -39,7 +40,7 @@ Examples:
$ kubectl namespace other
Set current namespace to other`,
Run: func(cmd *cobra.Command, args []string) {
nsPath := getFlagString(cmd, "ns-path")
nsPath := GetFlagString(cmd, "ns-path")
var err error
var ns *kubectl.NamespaceInfo
switch len(args) {