mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
docs: explain --rich-parameter-file format (#14941)
This commit is contained in:
@ -58,7 +58,7 @@ func (wpf *workspaceParameterFlags) cliParameters() []serpent.Option {
|
|||||||
serpent.Option{
|
serpent.Option{
|
||||||
Flag: "rich-parameter-file",
|
Flag: "rich-parameter-file",
|
||||||
Env: "CODER_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),
|
Value: serpent.StringOf(&wpf.richParameterFile),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
3
cli/testdata/coder_create_--help.golden
vendored
3
cli/testdata/coder_create_--help.golden
vendored
@ -28,7 +28,8 @@ OPTIONS:
|
|||||||
|
|
||||||
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
||||||
Specify a file path with values for rich parameters defined in the
|
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
|
--start-at string, $CODER_WORKSPACE_START_AT
|
||||||
Specify the workspace autostart schedule. Check coder schedule start
|
Specify the workspace autostart schedule. Check coder schedule start
|
||||||
|
3
cli/testdata/coder_restart_--help.golden
vendored
3
cli/testdata/coder_restart_--help.golden
vendored
@ -24,7 +24,8 @@ OPTIONS:
|
|||||||
|
|
||||||
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
||||||
Specify a file path with values for rich parameters defined in the
|
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
|
-y, --yes bool
|
||||||
Bypass prompts.
|
Bypass prompts.
|
||||||
|
3
cli/testdata/coder_start_--help.golden
vendored
3
cli/testdata/coder_start_--help.golden
vendored
@ -24,7 +24,8 @@ OPTIONS:
|
|||||||
|
|
||||||
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
||||||
Specify a file path with values for rich parameters defined in the
|
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
|
-y, --yes bool
|
||||||
Bypass prompts.
|
Bypass prompts.
|
||||||
|
3
cli/testdata/coder_update_--help.golden
vendored
3
cli/testdata/coder_update_--help.golden
vendored
@ -26,7 +26,8 @@ OPTIONS:
|
|||||||
|
|
||||||
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
||||||
Specify a file path with values for rich parameters defined in the
|
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.
|
Run `coder --help` for a list of global options.
|
||||||
|
2
docs/reference/cli/create.md
generated
2
docs/reference/cli/create.md
generated
@ -90,7 +90,7 @@ Rich parameter value in the format "name=value".
|
|||||||
| Type | <code>string</code> |
|
| Type | <code>string</code> |
|
||||||
| Environment | <code>$CODER_RICH_PARAMETER_FILE</code> |
|
| Environment | <code>$CODER_RICH_PARAMETER_FILE</code> |
|
||||||
|
|
||||||
Specify a file path with values for rich parameters defined in the template.
|
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.
|
||||||
|
|
||||||
### --parameter-default
|
### --parameter-default
|
||||||
|
|
||||||
|
2
docs/reference/cli/restart.md
generated
2
docs/reference/cli/restart.md
generated
@ -53,7 +53,7 @@ Rich parameter value in the format "name=value".
|
|||||||
| Type | <code>string</code> |
|
| Type | <code>string</code> |
|
||||||
| Environment | <code>$CODER_RICH_PARAMETER_FILE</code> |
|
| Environment | <code>$CODER_RICH_PARAMETER_FILE</code> |
|
||||||
|
|
||||||
Specify a file path with values for rich parameters defined in the template.
|
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.
|
||||||
|
|
||||||
### --parameter-default
|
### --parameter-default
|
||||||
|
|
||||||
|
2
docs/reference/cli/start.md
generated
2
docs/reference/cli/start.md
generated
@ -53,7 +53,7 @@ Rich parameter value in the format "name=value".
|
|||||||
| Type | <code>string</code> |
|
| Type | <code>string</code> |
|
||||||
| Environment | <code>$CODER_RICH_PARAMETER_FILE</code> |
|
| Environment | <code>$CODER_RICH_PARAMETER_FILE</code> |
|
||||||
|
|
||||||
Specify a file path with values for rich parameters defined in the template.
|
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.
|
||||||
|
|
||||||
### --parameter-default
|
### --parameter-default
|
||||||
|
|
||||||
|
2
docs/reference/cli/update.md
generated
2
docs/reference/cli/update.md
generated
@ -51,7 +51,7 @@ Rich parameter value in the format "name=value".
|
|||||||
| Type | <code>string</code> |
|
| Type | <code>string</code> |
|
||||||
| Environment | <code>$CODER_RICH_PARAMETER_FILE</code> |
|
| Environment | <code>$CODER_RICH_PARAMETER_FILE</code> |
|
||||||
|
|
||||||
Specify a file path with values for rich parameters defined in the template.
|
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.
|
||||||
|
|
||||||
### --parameter-default
|
### --parameter-default
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user