@ -20,11 +20,14 @@ import (
"errors"
"errors"
"fmt"
"fmt"
"io"
"io"
"io/ioutil"
"log"
"os"
"os"
"strings"
"strings"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
"google.golang.org/grpc"
"google.golang.org/grpc"
"google.golang.org/grpc/grpclog"
"k8s.io/kubernetes/pkg/client/restclient"
"k8s.io/kubernetes/pkg/client/restclient"
"k8s.io/kubernetes/pkg/client/unversioned"
"k8s.io/kubernetes/pkg/client/unversioned"
@ -90,6 +93,9 @@ func newRootCmd(out io.Writer) *cobra.Command {
p . StringVar ( & kubeContext , "kube-context" , "" , "name of the kubeconfig context to use" )
p . StringVar ( & kubeContext , "kube-context" , "" , "name of the kubeconfig context to use" )
p . BoolVarP ( & flagDebug , "debug" , "" , false , "enable verbose output" )
p . BoolVarP ( & flagDebug , "debug" , "" , false , "enable verbose output" )
// Tell gRPC not to log to console.
grpclog . SetLogger ( log . New ( ioutil . Discard , "" , log . LstdFlags ) )
rup := newRepoUpdateCmd ( out )
rup := newRepoUpdateCmd ( out )
rup . Deprecated = "use 'helm repo update'\n"
rup . Deprecated = "use 'helm repo update'\n"