Skip to content

docs: explain --rich-parameter-file format #14941

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 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (wpf *workspaceParameterFlags) cliParameters() []serpent.Option {
serpent.Option{
Flag: "rich-parameter-file",
Env: "CODER_RICH_PARAMETER_FILE",
Description: "Specify a file path with values for rich parameters defined in the template.",
Description: "Specify a file path with values for rich parameters defined in the template. The file should be in YAML format, containing key-value pairs for the parameters.",
Value: serpent.StringOf(&wpf.richParameterFile),
},
}
Expand Down
3 changes: 2 additions & 1 deletion cli/testdata/coder_create_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ OPTIONS:

--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
Specify a file path with values for rich parameters defined in the
template.
template. The file should be in YAML format, containing key-value
pairs for the parameters.

--start-at string, $CODER_WORKSPACE_START_AT
Specify the workspace autostart schedule. Check coder schedule start
Expand Down
3 changes: 2 additions & 1 deletion cli/testdata/coder_restart_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ OPTIONS:

--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
Specify a file path with values for rich parameters defined in the
template.
template. The file should be in YAML format, containing key-value
pairs for the parameters.

-y, --yes bool
Bypass prompts.
Expand Down
3 changes: 2 additions & 1 deletion cli/testdata/coder_start_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ OPTIONS:

--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
Specify a file path with values for rich parameters defined in the
template.
template. The file should be in YAML format, containing key-value
pairs for the parameters.

-y, --yes bool
Bypass prompts.
Expand Down
3 changes: 2 additions & 1 deletion cli/testdata/coder_update_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ OPTIONS:

--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
Specify a file path with values for rich parameters defined in the
template.
template. The file should be in YAML format, containing key-value
pairs for the parameters.

———
Run `coder --help` for a list of global options.
2 changes: 1 addition & 1 deletion docs/reference/cli/create.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/cli/restart.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/cli/start.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/cli/update.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading