delete a unused function in the 'pkg/kubectl/cmd/util/helpers.go'

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>

update

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
pull/6/head
Yanqiang Miao 2016-08-26 02:48:56 +08:00
parent 83e887fae3
commit ed3b3ad47d
1 changed files with 0 additions and 9 deletions

View File

@ -46,7 +46,6 @@ import (
"github.com/evanphx/json-patch"
"github.com/golang/glog"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
const (
@ -288,14 +287,6 @@ func isWatch(cmd *cobra.Command) bool {
return false
}
func getFlag(cmd *cobra.Command, flag string) *pflag.Flag {
f := cmd.Flags().Lookup(flag)
if f == nil {
glog.Fatalf("flag accessed but not defined for command %s: %s", cmd.Name(), flag)
}
return f
}
func GetFlagString(cmd *cobra.Command, flag string) string {
s, err := cmd.Flags().GetString(flag)
if err != nil {