1
+ // Copyright Red Hat, Inc., and individual contributors.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
1
15
package cmd
2
16
3
17
import (
@@ -31,10 +45,10 @@ func (cc *ClientCmd) ListClientsCmd() *cobra.Command {
31
45
command := & cobra.Command {
32
46
Use : "clients" ,
33
47
Short : "gets a list of mobile clients represented in the namespace" ,
34
- Long : `Example: mobile get clients
35
- mobile --namespace=myproject get clients
36
- kubectl plugin mobile get clients
37
- oc plugin mobile get clients` ,
48
+ Long : `get clients allows you to get a list of mobile clients that are represented in your namespace.` ,
49
+ Example : ` mobile get clients --namespace=myproject
50
+ kubectl plugin mobile get clients
51
+ oc plugin mobile get clients` ,
38
52
RunE : func (cmd * cobra.Command , args []string ) error {
39
53
ns , err := currentNamespace (cmd .Flags ())
40
54
if err != nil {
@@ -71,9 +85,11 @@ func (cc *ClientCmd) GetClientCmd() *cobra.Command {
71
85
command := & cobra.Command {
72
86
Use : "client <clientID>" ,
73
87
Short : "gets a single mobile client in the namespace" ,
74
- Long : `Example: mobile --namespace=myproject get client <clientID>
75
- kubectl plugin mobile get client <clientID>
76
- oc plugin mobile get client <clientID>` ,
88
+ Long : `get client allows you to view client information for a specific mobile client in your namespace.
89
+ Run the "mobile get clients" command from this tool to get the client ID.` ,
90
+ Example : ` mobile get client <clientID> --namespace=myproject
91
+ kubectl plugin mobile get client <clientID>
92
+ oc plugin mobile get client <clientID>` ,
77
93
RunE : func (cmd * cobra.Command , args []string ) error {
78
94
if len (args ) != 1 {
79
95
return errors .New ("missing argument <clientID>" )
@@ -112,7 +128,7 @@ func (cc *ClientCmd) CreateClientCmd() *cobra.Command {
112
128
cmd := & cobra.Command {
113
129
Use : "client <name> <clientType iOS|cordova|android> <appIdentifier bundleID|packageName >" ,
114
130
Short : "create a mobile client representation in your namespace" ,
115
- Long : `Sets up the representation of a mobile application of the specified type in your namespace.
131
+ Long : `create client sets up the representation of a mobile application of the specified type in your namespace.
116
132
This is used to provide a mobile client context for various actions such as creating, starting or stopping mobile client builds.
117
133
118
134
The available client types are android, cordova and iOS.
@@ -121,6 +137,7 @@ When used standalone, a namespace must be specified by providing the --namespace
121
137
Example : ` mobile create client <name> <clientType> <appIdentifier> --namespace=myproject
122
138
kubectl plugin mobile create client <name> <clientType> <appIdentifier>
123
139
oc plugin mobile create client <name> <clientType> <appIdentifier>` ,
140
+
124
141
RunE : func (cmd * cobra.Command , args []string ) error {
125
142
if len (args ) != 3 {
126
143
return errors .New ("expected a name a clientType and a appIdentifier" )
@@ -190,9 +207,11 @@ func (cc *ClientCmd) DeleteClientCmd() *cobra.Command {
190
207
command := & cobra.Command {
191
208
Use : "client <clientID>" ,
192
209
Short : "deletes a single mobile client in the namespace" ,
193
- Long : `Example: mobile --namespace=myproject delete client <clientID>
194
- kubectl plugin mobile delete client <clientID>
195
- oc plugin mobile delete client <clientID>` ,
210
+ Long : `delete client allows you to delete a single mobile client in your namespace.
211
+ Run the "mobile get clients" command from this tool to get the client ID.` ,
212
+ Example : ` mobile delete client <clientID> --namespace=myproject
213
+ kubectl plugin mobile delete client <clientID>
214
+ oc plugin mobile delete client <clientID>` ,
196
215
RunE : func (cmd * cobra.Command , args []string ) error {
197
216
var err error
198
217
var ns string
0 commit comments