@@ -25,7 +25,6 @@ import (
25
25
diagnostics "github.com/openshift/origin/pkg/oc/admin/diagnostics"
26
26
sync "github.com/openshift/origin/pkg/oc/admin/groups/sync/cli"
27
27
"github.com/openshift/origin/pkg/oc/admin/validate"
28
- "github.com/openshift/origin/pkg/oc/cli"
29
28
"github.com/openshift/origin/pkg/oc/cli/cmd"
30
29
"github.com/openshift/origin/pkg/oc/experimental/buildchain"
31
30
configcmd "github.com/openshift/origin/pkg/oc/experimental/config"
48
47
func CommandFor (basename string ) * cobra.Command {
49
48
var cmd * cobra.Command
50
49
51
- in , out , errout := os .Stdin , os . Stdout , os . Stderr
50
+ out := os .Stdout
52
51
53
52
// Make case-insensitive and strip executable suffix if present
54
53
if runtime .GOOS == "windows" {
@@ -75,10 +74,6 @@ func CommandFor(basename string) *cobra.Command {
75
74
cmd = builder .NewCommandManageDockerfile (basename )
76
75
case "openshift-extract-image-content" :
77
76
cmd = builder .NewCommandExtractImageContent (basename )
78
- case "oc" , "osc" :
79
- cmd = cli .NewCommandCLI (basename , basename , in , out , errout )
80
- case "oadm" , "osadm" :
81
- cmd = admin .NewCommandAdmin (basename , basename , in , out , errout )
82
77
case "origin" :
83
78
cmd = NewCommandOpenShift (basename )
84
79
default :
@@ -95,7 +90,7 @@ func CommandFor(basename string) *cobra.Command {
95
90
96
91
// NewCommandOpenShift creates the standard OpenShift command
97
92
func NewCommandOpenShift (name string ) * cobra.Command {
98
- in , out , errout := os . Stdin , os .Stdout , os .Stderr
93
+ out , errout := os .Stdout , os .Stderr
99
94
100
95
root := & cobra.Command {
101
96
Use : name ,
@@ -108,8 +103,6 @@ func NewCommandOpenShift(name string) *cobra.Command {
108
103
109
104
startAllInOne , _ := start .NewCommandStartAllInOne (name , out , errout )
110
105
root .AddCommand (startAllInOne )
111
- root .AddCommand (admin .NewCommandAdmin ("admin" , name + " admin" , in , out , errout ))
112
- root .AddCommand (cli .NewCommandCLI ("cli" , name + " cli" , in , out , errout ))
113
106
root .AddCommand (newExperimentalCommand ("ex" , name + " ex" ))
114
107
root .AddCommand (newCompletionCommand ("completion" , name + " completion" ))
115
108
root .AddCommand (cmd .NewCmdVersion (name , f , out , cmd.VersionOptions {PrintEtcdVersion : true , IsServer : true }))
0 commit comments