Skip to content

Commit d379c09

Browse files
committed
Improve the oc auth subcommands CLI example usage: Replaced the kubectl to oc
1 parent d076bb5 commit d379c09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/oc/cli/cmd/wrappers.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
1919
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
2020

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

785786
func NewCmdAuth(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command {
786-
cmd := kcmdauth.NewCmdAuth(f, out, errout)
787+
cmd := cmdutil.ReplaceCommandName("kubectl", fullName, templates.Normalize(kcmdauth.NewCmdAuth(f, out, errout)))
787788
return cmd
788789
}
789790

0 commit comments

Comments
 (0)