@@ -326,8 +326,8 @@ coder envs edit back-end-env --disk 20`,
326
326
},
327
327
}
328
328
cmd .Flags ().StringVarP (& org , "org" , "o" , "" , "name of the organization the environment should be created under." )
329
- cmd .Flags ().StringVarP (& img , "image" , "i" , "" , "name of the image you wan't the environment to be based off of." )
330
- cmd .Flags ().StringVarP (& tag , "tag" , "t" , "latest" , "image tag of the image you wan't to base the environment off of." )
329
+ cmd .Flags ().StringVarP (& img , "image" , "i" , "" , "name of the image you want the environment to be based off of." )
330
+ cmd .Flags ().StringVarP (& tag , "tag" , "t" , "latest" , "image tag of the image you want to base the environment off of." )
331
331
cmd .Flags ().Float32P ("cpu" , "c" , cpuCores , "The number of cpu cores the environment should be provisioned with." )
332
332
cmd .Flags ().Float32P ("memory" , "m" , memGB , "The amount of RAM an environment should be provisioned with." )
333
333
cmd .Flags ().IntP ("disk" , "d" , diskGB , "The amount of disk storage an environment should be provisioned with." )
@@ -339,10 +339,9 @@ coder envs edit back-end-env --disk 20`,
339
339
func rmEnvsCommand (user * string ) * cobra.Command {
340
340
var force bool
341
341
cmd := & cobra.Command {
342
- Use : "rm [...environment_names]" ,
343
- Short : "remove Coder environments by name" ,
344
- Hidden : true ,
345
- Args : cobra .MinimumNArgs (1 ),
342
+ Use : "rm [...environment_names]" ,
343
+ Short : "remove Coder environments by name" ,
344
+ Args : cobra .MinimumNArgs (1 ),
346
345
RunE : func (cmd * cobra.Command , args []string ) error {
347
346
ctx := cmd .Context ()
348
347
client , err := newClient ()
@@ -355,7 +354,10 @@ func rmEnvsCommand(user *string) *cobra.Command {
355
354
IsConfirm : true ,
356
355
}
357
356
if _ , err := confirm .Run (); err != nil {
358
- return err
357
+ return clog .Fatal (
358
+ "failed to confirm prompt" , clog .BlankLine ,
359
+ clog .Tipf (`use "--force" to rebuild without a confirmation prompt` ),
360
+ )
359
361
}
360
362
}
361
363
0 commit comments