Skip to content

Commit

Permalink
Enable plugins in oc
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianofranz committed Aug 9, 2017
1 parent 7636b61 commit 7550893
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/oc/cli/cli.go
Expand Up @@ -200,6 +200,7 @@ func NewCommandCLI(name, fullName string, in io.Reader, out, errout io.Writer) *
experimental.AddCommand()
cmds.AddCommand(experimental)

cmds.AddCommand(cmd.NewCmdPlugin(fullName, f, in, out, errout))
if name == fullName {
cmds.AddCommand(cmd.NewCmdVersion(fullName, f, out, cmd.VersionOptions{PrintClientFeatures: true}))
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/oc/cli/cmd/wrappers.go
Expand Up @@ -757,3 +757,7 @@ func NewCmdAuth(fullName string, f *clientcmd.Factory, out, errout io.Writer) *c
cmd := kcmdauth.NewCmdAuth(f, out, errout)
return cmd
}

func NewCmdPlugin(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command {
return kcmd.NewCmdPlugin(f, in, out, errout)
}
1 change: 0 additions & 1 deletion pkg/oc/cli/kubectl_compat_test.go
Expand Up @@ -32,7 +32,6 @@ var MissingCommands = sets.NewString(
// TODO commands to assess
"apiversions",
"clusterinfo",
"plugin",
"resize",
"rollingupdate",
"run-container",
Expand Down

0 comments on commit 7550893

Please sign in to comment.