Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commitd058055

Browse files
author
Faris Huskovic
committed
suggested changes
1 parent3c02dea commitd058055

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
returnxerrors.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
iffollow {
187+
clog.LogSuccess("creating environment...")
193188
iferr:=trailBuildLogs(cmd.Context(),client,env.ID);err!=nil {
194189
returnerr
195190
}
191+
returnnil
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
returnnil
198199
},
199200
}
@@ -293,17 +294,18 @@ coder envs edit back-end-env --disk 20`,
293294
returnxerrors.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
iffollow {
298+
clog.LogSuccess("applied changes to the environment, rebuilding...")
303299
iferr:=trailBuildLogs(cmd.Context(),client,env.ID);err!=nil {
304300
returnerr
305301
}
302+
returnnil
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
returnnil
308310
},
309311
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp