feat(cli): colorize help page (#9589)

This commit is contained in:
Ammar Bandukwala
2023-09-08 18:21:33 +00:00
committed by GitHub
parent 11404af9ca
commit e361f1107b
86 changed files with 1224 additions and 920 deletions
+19 -16
View File
@@ -1,57 +1,60 @@
Usage: coder templates edit [flags] <template>
coder v0.0.0-devel
Edit the metadata of a template by name.
USAGE:
coder templates edit [flags] <template>
Options
--allow-user-autostart bool (default: true)
Edit the metadata of a template by name.
OPTIONS:
--allow-user-autostart bool (default: true)
Allow users to configure autostart for workspaces on this template.
This can only be disabled in enterprise.
--allow-user-autostop bool (default: true)
--allow-user-autostop bool (default: true)
Allow users to customize the autostop TTL for workspaces on this
template. This can only be disabled in enterprise.
--allow-user-cancel-workspace-jobs bool (default: true)
--allow-user-cancel-workspace-jobs bool (default: true)
Allow users to cancel in-progress workspace jobs.
--default-ttl duration
--default-ttl duration
Edit the template default time before shutdown - workspaces created
from this template default to this value. Maps to "Default autostop"
in the UI.
--description string
--description string
Edit the template description.
--display-name string
--display-name string
Edit the template display name.
--failure-ttl duration (default: 0h)
--failure-ttl duration (default: 0h)
Specify a failure TTL for workspaces created from this template. It is
the amount of time after a failed "start" build before coder
automatically schedules a "stop" build to cleanup.This licensed
feature's default is 0h (off). Maps to "Failure cleanup" in the UI.
--icon string
--icon string
Edit the template icon path.
--inactivity-ttl duration (default: 0h)
--inactivity-ttl duration (default: 0h)
Specify an inactivity TTL for workspaces created from this template.
It is the amount of time the workspace is not used before it is be
stopped and auto-locked. This includes across multiple builds (e.g.
auto-starts and stops). This licensed feature's default is 0h (off).
Maps to "Dormancy threshold" in the UI.
--max-ttl duration
--max-ttl duration
Edit the template maximum time before shutdown - workspaces created
from this template must shutdown within the given duration after
starting, regardless of user activity. This is an enterprise-only
feature. Maps to "Max lifetime" in the UI.
--name string
--name string
Edit the template name.
-y, --yes bool
-y, --yes bool
Bypass prompts.
---
———
Run `coder --help` for a list of global options.