mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00: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:
12
cli/testdata/coder_users_create_--help.golden
vendored
12
cli/testdata/coder_users_create_--help.golden
vendored
@ -1,22 +1,22 @@
|
||||
coder v0.0.0-devel
|
||||
|
||||
[93mUSAGE:[0m
|
||||
USAGE:
|
||||
coder users create [flags]
|
||||
|
||||
[93mOPTIONS:[0m
|
||||
[96m-[0m[96me[0m, [96m--[0m[96memail[0m string
|
||||
OPTIONS:
|
||||
-e, --email string
|
||||
Specifies an email address for the new user.
|
||||
|
||||
[96m--[0m[96mlogin-type[0m string
|
||||
--login-type string
|
||||
Optionally specify the login type for the user. Valid values are:
|
||||
password, none, github, oidc. Using 'none' prevents the user from
|
||||
authenticating and requires an API key/token to be generated by an
|
||||
admin.
|
||||
|
||||
[96m-[0m[96mp[0m, [96m--[0m[96mpassword[0m string
|
||||
-p, --password string
|
||||
Specifies a password for the new user.
|
||||
|
||||
[96m-[0m[96mu[0m, [96m--[0m[96musername[0m string
|
||||
-u, --username string
|
||||
Specifies a username for the new user.
|
||||
|
||||
———
|
||||
|
Reference in New Issue
Block a user