forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cmd.go
33 lines (24 loc) · 753 Bytes
/
cmd.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package webconsole_operator
import (
"io"
"github.com/spf13/cobra"
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
"github.com/openshift/library-go/pkg/controller/controllercmd"
"github.com/openshift/origin/pkg/version"
)
const (
RecommendedWebConsoleOperatorName = "openshift-webconsole-operator"
)
type WebConsoleOperatorCommandOptions struct {
Output io.Writer
}
var longDescription = templates.LongDesc(`
Install the OpenShift webconsole`)
func NewWebConsoleOperatorCommand(name string) *cobra.Command {
cmd := controllercmd.
NewControllerCommandConfig("openshift-web-console-operator", version.Get(), RunWebConsoleOperator).
NewCommand()
cmd.Use = name
cmd.Short = "Install and operate the OpenShift webconsole"
return cmd
}