@@ -237,7 +237,7 @@ coder envs create --cpu 4 --disk 100 --memory 8 --image 5f443b16-30652892427b955
237
237
238
238
multiOrgMember , err := isMultiOrgMember (* user )
239
239
if err != nil {
240
- clog .Fatal (fmt .Sprintf ("checking if user is mutli-org member: %s" , err .Error ()))
240
+ _ = clog .Fatal (fmt .Sprintf ("checking if user is mutli-org member: %s" , err .Error ()))
241
241
}
242
242
243
243
// if the user belongs to multiple organizations we need them to specify which one.
@@ -249,7 +249,7 @@ coder envs create --cpu 4 --disk 100 --memory 8 --image 5f443b16-30652892427b955
249
249
250
250
func editEnvCommand (user * string ) * cobra.Command {
251
251
var (
252
- org string
252
+ org string
253
253
img string
254
254
tag string
255
255
cpuCores float32
@@ -288,16 +288,16 @@ coder envs edit back-end-env --disk 20`,
288
288
289
289
req , err := buildUpdateReq (cmd .Context (),
290
290
updateConf {
291
- cpu : cpuCores ,
292
- memGB : memGB ,
293
- diskGB : diskGB ,
294
- gpus : gpus ,
291
+ cpu : cpuCores ,
292
+ memGB : memGB ,
293
+ diskGB : diskGB ,
294
+ gpus : gpus ,
295
295
client : client ,
296
296
environment : env ,
297
297
user : user ,
298
298
image : img ,
299
299
imageTag : tag ,
300
- orgName : org ,
300
+ orgName : org ,
301
301
},
302
302
)
303
303
if err != nil {
@@ -335,9 +335,9 @@ coder envs edit back-end-env --disk 20`,
335
335
if img != "" {
336
336
multiOrgMember , err := isMultiOrgMember (* user )
337
337
if err != nil {
338
- clog .Fatal (fmt .Sprintf ("checking if user is mutli-org member: %s" , err .Error ()))
338
+ _ = clog .Fatal (fmt .Sprintf ("checking if user is mutli-org member: %s" , err .Error ()))
339
339
}
340
-
340
+
341
341
// if the user belongs to multiple organizations we need them to specify which one.
342
342
if * multiOrgMember {
343
343
_ = cmd .MarkFlagRequired ("org" )
@@ -405,16 +405,16 @@ func rmEnvsCommand(user *string) *cobra.Command {
405
405
}
406
406
407
407
type updateConf struct {
408
- cpu float32
409
- memGB float32
410
- diskGB int
411
- gpus int
408
+ cpu float32
409
+ memGB float32
410
+ diskGB int
411
+ gpus int
412
412
client * coder.Client
413
413
environment * coder.Environment
414
414
user * string
415
415
image string
416
416
imageTag string
417
- orgName string
417
+ orgName string
418
418
}
419
419
420
420
func buildUpdateReq (ctx context.Context , conf updateConf ) (* coder.UpdateEnvironmentReq , error ) {
0 commit comments