Skip to content

Commit

Permalink
Improve the oc auth subcommands CLI example usage: Replaced the `ku…
Browse files Browse the repository at this point in the history
…bectl` to `oc`
  • Loading branch information
linzhaoming committed Nov 11, 2017
1 parent d076bb5 commit d379c09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/oc/cli/cmd/wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"

cmdutil "github.com/openshift/origin/pkg/cmd/util"
"github.com/openshift/origin/pkg/cmd/util/clientcmd"
"github.com/openshift/origin/pkg/oc/cli/cmd/create"
cmdconfig "github.com/openshift/origin/pkg/oc/cli/config"
Expand Down Expand Up @@ -783,7 +784,7 @@ func NewCmdCp(fullName string, f *clientcmd.Factory, in io.Reader, out, errout i
}

func NewCmdAuth(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command {
cmd := kcmdauth.NewCmdAuth(f, out, errout)
cmd := cmdutil.ReplaceCommandName("kubectl", fullName, templates.Normalize(kcmdauth.NewCmdAuth(f, out, errout)))
return cmd
}

Expand Down

0 comments on commit d379c09

Please sign in to comment.