Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit d058055

Browse files
author
Faris Huskovic
committed
suggested changes
1 parent 3c02dea commit d058055

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

internal/cmd/envs.go

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,18 @@ coder envs create --cpu 4 --disk 100 --memory 8 --image 5f443b16-30652892427b955
183183
return xerrors.Errorf("create environment: %w", err)
184184
}
185185

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-
192186
if follow {
187+
clog.LogSuccess("creating environment...")
193188
if err := trailBuildLogs(cmd.Context(), client, env.ID); err != nil {
194189
return err
195190
}
191+
return nil
196192
}
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+
)
197198
return nil
198199
},
199200
}
@@ -293,17 +294,18 @@ coder envs edit back-end-env --disk 20`,
293294
return xerrors.Errorf("failed to apply changes to environment: '%s'", envName)
294295
}
295296

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-
302297
if follow {
298+
clog.LogSuccess("applied changes to the environment, rebuilding...")
303299
if err := trailBuildLogs(cmd.Context(), client, env.ID); err != nil {
304300
return err
305301
}
302+
return nil
306303
}
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+
)
307309
return nil
308310
},
309311
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy