@@ -89,8 +89,7 @@ func Commands() []*cobra.Command {
89
89
_ = utils .LogError ("Unable to bind the flag ('cluster-name')" , nil )
90
90
}
91
91
},
92
- RunE : actionSetup ,
93
- SilenceErrors : true ,
92
+ RunE : actionSetup ,
94
93
}
95
94
96
95
setup .Flags ().StringP ("username" , "" , "" , "The username used for login" )
@@ -162,8 +161,7 @@ func Commands() []*cobra.Command {
162
161
_ = utils .LogError ("Unable to bind the flag ('version')" , nil )
163
162
}
164
163
},
165
- SilenceErrors : true ,
166
- RunE : actionUpgrade ,
164
+ RunE : actionUpgrade ,
167
165
}
168
166
upgrade .Flags ().StringP ("cluster-name" , "" , "default" , "The name of space-cloud cluster" )
169
167
upgrade .Flags ().StringP ("version" , "" , "default" , "version to use for upgrade" )
@@ -184,8 +182,7 @@ func Commands() []*cobra.Command {
184
182
_ = utils .LogError ("Unable to bind the flag ('cluster-name')" , nil )
185
183
}
186
184
},
187
- SilenceErrors : true ,
188
- RunE : actionDestroy ,
185
+ RunE : actionDestroy ,
189
186
}
190
187
destroy .Flags ().StringP ("cluster-name" , "" , "default" , "The name of space-cloud cluster" )
191
188
if err = viper .BindEnv ("cluster-name" , "CLUSTER_NAME" ); err != nil {
@@ -197,10 +194,9 @@ func Commands() []*cobra.Command {
197
194
}
198
195
199
196
var apply = & cobra.Command {
200
- Use : "apply" ,
201
- Short : "deploys service" ,
202
- RunE : actionApply ,
203
- SilenceErrors : true ,
197
+ Use : "apply" ,
198
+ Short : "Applies a config file or directory" ,
199
+ RunE : actionApply ,
204
200
}
205
201
206
202
var start = & cobra.Command {
@@ -211,8 +207,7 @@ func Commands() []*cobra.Command {
211
207
_ = utils .LogError ("Unable to bind the flag ('cluster-name')" , nil )
212
208
}
213
209
},
214
- SilenceErrors : true ,
215
- RunE : actionStart ,
210
+ RunE : actionStart ,
216
211
}
217
212
start .Flags ().StringP ("cluster-name" , "" , "default" , "The name of space-cloud cluster" )
218
213
if err = viper .BindEnv ("cluster-name" , "CLUSTER_NAME" ); err != nil {
@@ -231,8 +226,7 @@ func Commands() []*cobra.Command {
231
226
_ = utils .LogError ("Unable to bind the flag ('cluster-name')" , nil )
232
227
}
233
228
},
234
- SilenceErrors : true ,
235
- RunE : actionStop ,
229
+ RunE : actionStop ,
236
230
}
237
231
stop .Flags ().StringP ("cluster-name" , "" , "default" , "The name of space-cloud cluster" )
238
232
if err = viper .BindEnv ("cluster-name" , "CLUSTER_NAME" ); err != nil {
0 commit comments