mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat(cli): colorize help page (#9589)
This commit is contained in:
27
cli/testdata/coder_create_--help.golden
vendored
27
cli/testdata/coder_create_--help.golden
vendored
@ -1,32 +1,35 @@
|
||||
Usage: coder create [flags] [name]
|
||||
coder v0.0.0-devel
|
||||
|
||||
Create a workspace
|
||||
[93mUSAGE:[0m
|
||||
coder create [flags] [name]
|
||||
|
||||
- Create a workspace for another user (if you have permission):
|
||||
Create a workspace
|
||||
|
||||
$ coder create <username>/<workspace_name>
|
||||
- Create a workspace for another user (if you have permission):
|
||||
|
||||
$ coder create <username>/<workspace_name>
|
||||
|
||||
[1mOptions[0m
|
||||
--parameter string-array, $CODER_RICH_PARAMETER
|
||||
[93mOPTIONS:[0m
|
||||
[94m--[0m[94mparameter[0m string-array, [94m$CODER_RICH_PARAMETER[0m
|
||||
Rich parameter value in the format "name=value".
|
||||
|
||||
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
||||
[94m--[0m[94mrich-parameter-file[0m string, [94m$CODER_RICH_PARAMETER_FILE[0m
|
||||
Specify a file path with values for rich parameters defined in the
|
||||
template.
|
||||
|
||||
--start-at string, $CODER_WORKSPACE_START_AT
|
||||
[94m--[0m[94mstart-at[0m string, [94m$CODER_WORKSPACE_START_AT[0m
|
||||
Specify the workspace autostart schedule. Check coder schedule start
|
||||
--help for the syntax.
|
||||
|
||||
--stop-after duration, $CODER_WORKSPACE_STOP_AFTER
|
||||
[94m--[0m[94mstop-after[0m duration, [94m$CODER_WORKSPACE_STOP_AFTER[0m
|
||||
Specify a duration after which the workspace should shut down (e.g.
|
||||
8h).
|
||||
|
||||
-t, --template string, $CODER_TEMPLATE_NAME
|
||||
[94m-[0m[94mt[0m, [94m--[0m[94mtemplate[0m string, [94m$CODER_TEMPLATE_NAME[0m
|
||||
Specify a template name.
|
||||
|
||||
-y, --yes bool
|
||||
[94m-[0m[94my[0m, [94m--[0m[94myes[0m bool
|
||||
Bypass prompts.
|
||||
|
||||
---
|
||||
———
|
||||
Run `coder --help` for a list of global options.
|
||||
|
Reference in New Issue
Block a user