@@ -183,17 +183,18 @@ coder envs create --cpu 4 --disk 100 --memory 8 --image 5f443b16-30652892427b955
183
183
return xerrors .Errorf ("create environment: %w" , err )
184
184
}
185
185
186
- clog .LogSuccess (
187
- "creating environment..." ,
188
- clog .BlankLine ,
189
- clog .Tipf (`run "coder envs watch-build %q" to trail the build logs` , args [0 ]),
190
- )
191
-
192
186
if follow {
187
+ clog .LogSuccess ("creating environment..." )
193
188
if err := trailBuildLogs (cmd .Context (), client , env .ID ); err != nil {
194
189
return err
195
190
}
191
+ return nil
196
192
}
193
+
194
+ clog .LogSuccess ("creating environment..." ,
195
+ clog .BlankLine ,
196
+ clog .Tipf (`run "coder envs watch-build %q" to trail the build logs` , env .Name ),
197
+ )
197
198
return nil
198
199
},
199
200
}
@@ -293,17 +294,18 @@ coder envs edit back-end-env --disk 20`,
293
294
return xerrors .Errorf ("failed to apply changes to environment: '%s'" , envName )
294
295
}
295
296
296
- clog .LogSuccess (
297
- "applied changes to the environment, rebuilding..." ,
298
- clog .BlankLine ,
299
- clog .Tipf (`run "coder envs watch-build %q" to trail the build logs` , envName ),
300
- )
301
-
302
297
if follow {
298
+ clog .LogSuccess ("applied changes to the environment, rebuilding..." )
303
299
if err := trailBuildLogs (cmd .Context (), client , env .ID ); err != nil {
304
300
return err
305
301
}
302
+ return nil
306
303
}
304
+
305
+ clog .LogSuccess ("applied changes to the environment, rebuilding..." ,
306
+ clog .BlankLine ,
307
+ clog .Tipf (`run "coder envs watch-build %q" to trail the build logs` , envName ),
308
+ )
307
309
return nil
308
310
},
309
311
}
0 commit comments