File tree Expand file tree Collapse file tree 4 files changed +60
-17
lines changed
Expand file tree Collapse file tree 4 files changed +60
-17
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ operations related to your application services.
1010=== Examples
1111
1212....
13- # view information about your cluster
14- $ rhoas cluster info
13+ # view the status of the cluster
14+ $ rhoas cluster status
1515
1616# connect a service to your cluster
1717$ rhoas cluster connect
@@ -34,5 +34,5 @@ $ rhoas cluster connect
3434* link:rhoas.adoc[rhoas] - RHOAS CLI
3535* link:rhoas_cluster_connect.adoc[rhoas cluster connect] - Connect your
3636services to a Kubernetes or OpenShift
37- * link:rhoas_cluster_info .adoc[rhoas cluster info ] - View information
38- about the current Kubernetes or OpenShift cluster.
37+ * link:rhoas_cluster_status .adoc[rhoas cluster status ] - View status of
38+ the current Kubernetes or OpenShift cluster.
Original file line number Diff line number Diff line change 1+ == rhoas cluster status
2+
3+ View status of the current Kubernetes or OpenShift cluster.
4+
5+ === Synopsis
6+
7+ View status of the current Kubernetes or OpenShift cluster using your
8+ kubeconfig file.
9+
10+ The information shown is useful for connecting your service to the
11+ OpenShift cluster.
12+
13+ For this command to work you must be logged into a Kubernetes or
14+ OpenShift cluster. The command uses the kubeconfig file to identify the
15+ cluster context.
16+
17+ ....
18+ rhoas cluster status [flags]
19+ ....
20+
21+ === Examples
22+
23+ ....
24+ # print status of the current cluster
25+ $ rhoas cluster status
26+ ....
27+
28+ === Options
29+
30+ ....
31+ -h, --help help for status
32+ ....
33+
34+ === Options inherited from parent commands
35+
36+ ....
37+ -d, --debug Enable debug mode
38+ ....
39+
40+ === SEE ALSO
41+
42+ * link:rhoas_cluster.adoc[rhoas cluster] - View and perform operations on
43+ your Kubernetes or OpenShift Cluster
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package cluster
33import (
44 "github.com/MakeNowJust/heredoc"
55 "github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/cluster/connect"
6- "github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/cluster/info "
6+ "github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/cluster/status "
77 "github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/factory"
88 "github.com/spf13/cobra"
99)
@@ -18,8 +18,8 @@ func NewClusterCommand(f *factory.Factory) *cobra.Command {
1818 and perform operations related to your application services.
1919 ` ),
2020 Example : heredoc .Doc (`
21- # view information about your cluster
22- $ rhoas cluster info
21+ # view the status of the cluster
22+ $ rhoas cluster status
2323
2424 # connect a service to your cluster
2525 $ rhoas cluster connect
@@ -28,7 +28,7 @@ func NewClusterCommand(f *factory.Factory) *cobra.Command {
2828 }
2929
3030 cmd .AddCommand (
31- info . NewInfoCommand (f ),
31+ status . NewStatusCommand (f ),
3232 connect .NewConnectCommand (f ),
3333 )
3434
Original file line number Diff line number Diff line change 1- package info
1+ package status
22
33import (
44 "context"
@@ -30,37 +30,37 @@ type Options struct {
3030 Logger func () (logging.Logger , error )
3131}
3232
33- func NewInfoCommand (f * factory.Factory ) * cobra.Command {
33+ func NewStatusCommand (f * factory.Factory ) * cobra.Command {
3434 opts := & Options {
3535 Config : f .Config ,
3636 Connection : f .Connection ,
3737 Logger : f .Logger ,
3838 }
3939
4040 cmd := & cobra.Command {
41- Use : "info " ,
42- Short : "View information about the current Kubernetes or OpenShift cluster." ,
41+ Use : "status " ,
42+ Short : "View status of the current Kubernetes or OpenShift cluster." ,
4343 Long : heredoc .Doc (`
44- View information about the current Kubernetes or OpenShift cluster using your kubeconfig file.
44+ View status of the current Kubernetes or OpenShift cluster using your kubeconfig file.
4545
4646 The information shown is useful for connecting your service to the OpenShift cluster.
4747
4848 For this command to work you must be logged into a Kubernetes or OpenShift cluster. The command
4949 uses the kubeconfig file to identify the cluster context.
5050 ` ),
5151 Example : heredoc .Doc (`
52- # print information about the current cluster
53- $ rhoas cluster info
52+ # print status of the current cluster
53+ $ rhoas cluster status
5454 ` ),
5555 RunE : func (cmd * cobra.Command , _ []string ) error {
56- return runInfo (opts )
56+ return runStatus (opts )
5757 },
5858 }
5959
6060 return cmd
6161}
6262
63- func runInfo (opts * Options ) error {
63+ func runStatus (opts * Options ) error {
6464 connection , err := opts .Connection ()
6565 if err != nil {
6666 return err
You can’t perform that action at this time.
0 commit comments