8000 feat(cli): support ephemeral parameters by mtojek · Pull Request #8415 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat(cli): support ephemeral parameters #8415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 13, 2023
Next Next commit
Skip ephemeral parameters while creating/updating the workspace
  • Loading branch information
mtojek committed Jul 11, 2023
commit e8424b21c35385b40f10d495c78ed791f1cdb5d8
4 changes: 4 additions & 0 deletions cli/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ func prepWorkspaceBuild(inv *clibase.Invocation, client *codersdk.Client, args p
richParameters := make([]codersdk.WorkspaceBuildParameter, 0)
PromptRichParamLoop:
for _, templateVersionParameter := range templateVersionParameters {
if templateVersionParameter.Ephemeral {
continue
}

if !disclaimerPrinted {
_, _ = fmt.Fprintln(inv.Stdout, cliui.DefaultStyles.Paragraph.Render("This template has customizable parameters. Values can be changed after create, but may have unintended side effects (like data loss).")+"\r\n")
disclaimerPrinted = true
Expand Down
0