mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
perf(cli): optimize CPU consumption of help pages (#9607)
This change reduces the CPU consumption of --help by ~50%. Also, this change removes ANSI escape codes from our golden files. I don't think those were worth the inability to parallelize golden file tests and global state fragility.
This commit is contained in:
+14
-14
@@ -1,59 +1,59 @@
|
||||
coder v0.0.0-devel
|
||||
|
||||
[93mUSAGE:[0m
|
||||
USAGE:
|
||||
coder templates edit [flags] <template>
|
||||
|
||||
Edit the metadata of a template by name.
|
||||
|
||||
[93mOPTIONS:[0m
|
||||
[96m--[0m[96mallow-user-autostart[0m bool (default: true)
|
||||
OPTIONS:
|
||||
--allow-user-autostart bool (default: true)
|
||||
Allow users to configure autostart for workspaces on this template.
|
||||
This can only be disabled in enterprise.
|
||||
|
||||
[96m--[0m[96mallow-user-autostop[0m 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.
|
||||
|
||||
[96m--[0m[96mallow-user-cancel-workspace-jobs[0m bool (default: true)
|
||||
--allow-user-cancel-workspace-jobs bool (default: true)
|
||||
Allow users to cancel in-progress workspace jobs.
|
||||
|
||||
[96m--[0m[96mdefault-ttl[0m 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.
|
||||
|
||||
[96m--[0m[96mdescription[0m string
|
||||
--description string
|
||||
Edit the template description.
|
||||
|
||||
[96m--[0m[96mdisplay-name[0m string
|
||||
--display-name string
|
||||
Edit the template display name.
|
||||
|
||||
[96m--[0m[96mfailure-ttl[0m 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.
|
||||
|
||||
[96m--[0m[96micon[0m string
|
||||
--icon string
|
||||
Edit the template icon path.
|
||||
|
||||
[96m--[0m[96minactivity-ttl[0m 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.
|
||||
|
||||
[96m--[0m[96mmax-ttl[0m 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.
|
||||
|
||||
[96m--[0m[96mname[0m string
|
||||
--name string
|
||||
Edit the template name.
|
||||
|
||||
[96m-[0m[96my[0m, [96m--[0m[96myes[0m bool
|
||||
-y, --yes bool
|
||||
Bypass prompts.
|
||||
|
||||
———
|
||||
|
||||
Reference in New Issue
Block a user