Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: convert rest of CLI to clibase#6491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ammario merged 192 commits intomainfromclibase-all
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
192 commits
Select commitHold shift + click to select a range
0dbcd12
Build out basic command scaffold
ammarioMar 6, 2023
18d31bf
Fixup middleware
ammarioMar 6, 2023
ec8e626
Support global flags
ammarioMar 6, 2023
e54d393
Make progress...
ammarioMar 7, 2023
518b51d
486 problems left
ammarioMar 7, 2023
c9820fb
go mod tidy
ammarioMar 7, 2023
32a1759
330 problems left...
ammarioMar 7, 2023
5af1142
208 problems left...
ammarioMar 7, 2023
5613d3b
185 problems left...
ammarioMar 7, 2023
b713372
359 problems left...
ammarioMar 7, 2023
7884f32
354 problems left...
ammarioMar 7, 2023
a58d15e
434 problems left...
ammarioMar 7, 2023
c8c9e51
511 problems left...
ammarioMar 7, 2023
274c84d
Assorted changes
ammarioMar 7, 2023
6fb72b5
621 problems remaining...
ammarioMar 7, 2023
eeb9500
576 problems remaining...
ammarioMar 8, 2023
e8959cf
500 problems remaining...
ammarioMar 8, 2023
799ace7
425 problems remaining...
ammarioMar 8, 2023
25682f6
417 problems left...
ammarioMar 8, 2023
88a64fc
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 8, 2023
c0a77cc
396 problems left...
ammarioMar 8, 2023
6757d66
330 problems left...
ammarioMar 8, 2023
6c0b64a
248 problems left...
ammarioMar 9, 2023
d028e1e
162 problems left...
ammarioMar 9, 2023
a678576
102 problems left...
ammarioMar 9, 2023
c4e8925
44 problems left...
ammarioMar 9, 2023
46f0339
0 (compilation) problems left...
ammarioMar 9, 2023
d242a84
Get stuck on git askpass
ammarioMar 9, 2023
0706c19
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 9, 2023
6757d84
deployment values
ammarioMar 9, 2023
113ad13
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 9, 2023
855e97d
Fix GitAskPass tests
ammarioMar 9, 2023
04977de
Fix Dotfiles tests
ammarioMar 9, 2023
d183ce3
Fix ResetPassword test
ammarioMar 9, 2023
ee6b65b
help wip
ammarioMar 9, 2023
d19cae5
chore: move over some of the clibase changes
ammarioMar 9, 2023
a57639b
Port over some of clibase
ammarioMar 9, 2023
a571e0c
Simplify Invoke calls
ammarioMar 9, 2023
2b02e65
grr fmt.Errorf
ammarioMar 9, 2023
2884aa6
fix: treat empty env as defaults (#6538)
ammarioMar 9, 2023
71f2c32
Reduce indirection in clibasetest.IO
ammarioMar 9, 2023
c6621bb
Cancel context when command finishes
ammarioMar 9, 2023
be7f957
oops typo
ammarioMar 9, 2023
2f99f87
Merge branch 'some-clibase' into clibase-all
ammarioMar 9, 2023
aac0fc0
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 11, 2023
bfbd0f5
Test Help
ammarioMar 11, 2023
7d12d64
Regen golden files!
ammarioMar 11, 2023
d5228c3
Sanity-check command options
ammarioMar 11, 2023
6f3575e
Progress
ammarioMar 11, 2023
029bd27
Limit newlines!
ammarioMar 11, 2023
74e5819
identation
ammarioMar 11, 2023
42d8011
Fix schedule test
ammarioMar 11, 2023
781d700
Fix CreateAdminUser
ammarioMar 11, 2023
94823df
Pass Rename + SSH
ammarioMar 12, 2023
c2fdc2c
Fix a bunch of server tests
ammarioMar 12, 2023
aee0627
Agent tests pass!
ammarioMar 12, 2023
f1d9c22
fixup! Agent tests pass!
ammarioMar 12, 2023
eca5625
Get in insecure reader
ammarioMar 13, 2023
be8dcc8
Speed up SSH keygen
ammarioMar 13, 2023
2500af8
Fix all tests in ./cli
ammarioMar 13, 2023
e776504
Enterprise cli tests pass
ammarioMar 13, 2023
d6adedf
Start working on clidocsgen
ammarioMar 13, 2023
4f21d52
Hmm
ammarioMar 13, 2023
1e5d223
docs v1
ammarioMar 14, 2023
ad810f6
docs skeleton done
ammarioMar 14, 2023
4f52669
It's done!
ammarioMar 14, 2023
303f0ab
fmt
ammarioMar 14, 2023
51c132e
fixup! fmt
ammarioMar 14, 2023
6c697f6
Remove remaining call to cobra
ammarioMar 14, 2023
7ab0710
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 14, 2023
fc4342b
fix clitest
ammarioMar 14, 2023
0b1ed6f
Fix server tests
ammarioMar 14, 2023
b759071
Upgrade slog
ammarioMar 14, 2023
412f054
go mod tidy
ammarioMar 14, 2023
466c3dc
Erase cobra from memory
ammarioMar 14, 2023
d3dab44
Pass linter
ammarioMar 14, 2023
bf93f2b
Pass lint/gen
ammarioMar 14, 2023
f5e2611
Improve error presentation
ammarioMar 14, 2023
64a28b8
config dir
ammarioMar 14, 2023
3292af9
Refine error printing some more
ammarioMar 14, 2023
039ef66
Fix flake
ammarioMar 14, 2023
df1e20a
sed: simplify tty attaches
ammarioMar 14, 2023
746f27d
fix compilation bugs
ammarioMar 14, 2023
e8d6a47
Improve error formatting
ammarioMar 14, 2023
9852f0b
Hmm testutil
ammarioMar 14, 2023
36212f7
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 14, 2023
1cd34ef
Minor code style
ammarioMar 14, 2023
8216640
fix lint
ammarioMar 14, 2023
6dc4578
fixup! fix lint
ammarioMar 14, 2023
97233c2
rng
ammarioMar 14, 2023
2065ddc
Get rid of suspect fastrand
ammarioMar 14, 2023
f9cd94e
Restore long timeout in Server/Postgres test
ammarioMar 14, 2023
8f0b0fa
Increase default command timeout
ammarioMar 14, 2023
65e9dc3
minor cleanup
ammarioMar 14, 2023
527e7ef
Windows?
ammarioMar 14, 2023
6ec84aa
WINDOWS
ammarioMar 14, 2023
95508bd
Big man on campus
ammarioMar 14, 2023
695b56d
WINDNDDODODODOOOOWWS
ammarioMar 14, 2023
980768b
fixup! WINDNDDODODODOOOOWWS
ammarioMar 14, 2023
452ffdf
fixup! WINDNDDODODODOOOOWWS
ammarioMar 14, 2023
371e34d
fixup! WINDNDDODODODOOOOWWS
ammarioMar 14, 2023
888292c
fixup! WINDNDDODODODOOOOWWS
ammarioMar 14, 2023
f5fcc2c
fixup! WINDNDDODODODOOOOWWS
ammarioMar 14, 2023
8e04d8b
fixup! WINDNDDODODODOOOOWWS
ammarioMar 14, 2023
1b6062b
fixup! WINDNDDODODODOOOOWWS
ammarioMar 14, 2023
71e5700
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 14, 2023
59a53b4
WIN WIN WIN DOWS
ammarioMar 14, 2023
2acc7f0
fixup! WIN WIN WIN DOWS
ammarioMar 14, 2023
faa3515
Address review comments
ammarioMar 14, 2023
1b281af
Add "unknown command" error
ammarioMar 14, 2023
1cba181
Reject args to coder server
ammarioMar 14, 2023
1e29b7a
Update cli/cliui/log.go
ammarioMar 16, 2023
ba9443a
Start addressing mathias feedback
ammarioMar 16, 2023
981bf55
Hit a couple more problems
ammarioMar 16, 2023
e7d7d8a
fix: slim
ammarioMar 16, 2023
8da9ed3
Update cli/cliui/log.go
ammarioMar 16, 2023
e176250
Remove all redundant Name fields
ammarioMar 16, 2023
813a30e
Address more comments
ammarioMar 16, 2023
b74c576
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 16, 2023
17cdcfc
WIP debug Create
ammarioMar 16, 2023
9958d26
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 16, 2023
4f4c66c
Improve errors
ammarioMar 16, 2023
ff3b858
found it!
ammarioMar 16, 2023
1f7eef1
Fix descriptions in entcli
ammarioMar 16, 2023
79a66c5
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 17, 2023
2781b7c
type out CODER_ prefix
ammarioMar 17, 2023
dc60ac8
fix root usage
ammarioMar 17, 2023
e21d488
Fix test hang
ammarioMar 20, 2023
4e6e434
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 20, 2023
22a6978
Fix goroutine link in cliui
ammarioMar 20, 2023
d4ae272
Show subcommands first in help
ammarioMar 20, 2023
7bf9b21
Fix wrapping in subcommands
ammarioMar 20, 2023
3611907
Call out global options in each command's help
ammarioMar 20, 2023
ed700b8
Address some more comments
ammarioMar 20, 2023
0671e00
SCALETEST
ammarioMar 20, 2023
7d03079
Improve error formatting
ammarioMar 21, 2023
218f57e
Improve error style even more!
ammarioMar 21, 2023
c075ee2
Remove `coder ssh --shuffle`, amongst other improvements
ammarioMar 21, 2023
c6e7689
docs: align markdown names
ammarioMar 21, 2023
4435212
docs: show full use line!
ammarioMar 21, 2023
79d4130
docs: don't show empty tables
ammarioMar 21, 2023
dcf5b50
fix lint
ammarioMar 21, 2023
03d8a19
Update golden files
ammarioMar 21, 2023
e122a9c
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 21, 2023
c72050b
Fix help whitespace issues
mafredriMar 21, 2023
c33954c
Sort flags
mafredriMar 21, 2023
a774c0e
Sort commands
mafredriMar 21, 2023
3cb50b3
Run make gen and update-golden-files
mafredriMar 21, 2023
e33da7a
Show shorthand flag first
mafredriMar 21, 2023
1b81037
Run make gen and update-golden-files
mafredriMar 21, 2023
e96d155
Fix prepare all after options
mafredriMar 21, 2023
81c4543
Address review comments
ammarioMar 21, 2023
4338598
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 21, 2023
359923b
Remove periods from examples
ammarioMar 21, 2023
8e420dd
Fix list outputs in golden files!
ammarioMar 21, 2023
bbdcb7e
fixup! Fix list outputs in golden files!
ammarioMar 21, 2023
cc0a998
Fix scaletest descriptions
ammarioMar 21, 2023
8dbf57c
Fix remaining issues!
ammarioMar 21, 2023
3495efc
Remove cache directory
ammarioMar 21, 2023
de08cde
Fix cache dir?
ammarioMar 21, 2023
0544597
Add ErrorWaiter to clitest
ammarioMar 21, 2023
7bc2f82
Print aliases
ammarioMar 22, 2023
7c1acbf
Remove "t" alias
ammarioMar 22, 2023
796b527
Fix up more of the diff... through scaletest
ammarioMar 22, 2023
2413718
Add missing [flags]
ammarioMar 22, 2023
da716cf
make update-golden-files
ammarioMar 22, 2023
ca9ccba
Fix some more duplication + migration issues
ammarioMar 22, 2023
9865ba8
make gen + messed up a bullet
ammarioMar 22, 2023
38110ba
Fix dotfiles description
ammarioMar 22, 2023
0cf7654
Fix scaletest wording
ammarioMar 22, 2023
0bfcbee
Put aliases in docs too
ammarioMar 22, 2023
ac60ecb
Fix typo in scaletest
ammarioMar 22, 2023
6255ddd
Remove excess whitespace from error
ammarioMar 22, 2023
9ebd6e9
Remove (default: false) spam
ammarioMar 22, 2023
85e252b
tangent: [flags] in usage linting
ammarioMar 22, 2023
40a6914
Automatically add [flags]
ammarioMar 22, 2023
5f1e374
Remove remaining ".:"
ammarioMar 22, 2023
3a01d94
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 22, 2023
fb4eb88
Tests pass post merge
ammarioMar 22, 2023
6cb6ef6
fmt & lint
ammarioMar 22, 2023
919f768
Hide support links since it's flagless
ammarioMar 22, 2023
e6fa741
Automatically insert "rm" alias
ammarioMar 23, 2023
44fcba5
Remove description wrapping
ammarioMar 23, 2023
dcc5943
Add back consistent type helpers
ammarioMar 23, 2023
ed49ce5
Revert remaining bad descriptions
ammarioMar 23, 2023
d5af663
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 23, 2023
cdda9fe
Fix output array formatting
ammarioMar 23, 2023
0c5a778
Only show subcommand error when command doesn't take arguments
ammarioMar 23, 2023
f9679b8
Merge remote-tracking branch 'origin/main' into clibase-all
ammarioMar 23, 2023
9b798ed
Fix compilation errors introduced by merge
ammarioMar 23, 2023
907e26e
Use correct timeouts in agent tests
ammarioMar 23, 2023
9dca6f2
Bump up test timeout
ammarioMar 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Add back consistent type helpers
  • Loading branch information
@ammario
ammario committedMar 23, 2023
commitdcc5943cfa2420e0c0ca7f82393a68a235cb2bc1
8 changes: 1 addition & 7 deletionscli/help.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,14 +55,8 @@ var usageTemplate = template.Must(
"typeHelper": func(opt *clibase.Option) string {
switch v := opt.Value.(type) {
case *clibase.Enum:
returnfmt.Sprintf("one of %s",strings.Join(v.Choices, "|"))
return strings.Join(v.Choices, "|")
default:
// Usually, enough type information is found in the
// default. It's easy to print too much information
// and either overwhelm or, worse, cause wrapping.
if opt.Default != "" {
return ""
}
return v.Type()
}
},
Expand Down
3 changes: 1 addition & 2 deletionscli/help.tpl
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -37,10 +37,9 @@ Usage: {{.FullUsage}}
{{- if not (eq $option.FlagShorthand "") }}{{- print "\n -" $option.FlagShorthand ", " -}}
{{- else }}{{- print "\n " -}}
{{- end }}
{{- with flagName $option }}--{{ . }}{{ end }}
{{- with flagName $option }}--{{ . }}{{ end }} {{- with typeHelper $option }} {{ . }}{{ end }}
{{- with envName $option }}, ${{ . }}{{ end }}
{{- with $option.Default }} (default: {{ . }}){{ end }}
{{- with typeHelper $option }} {{ . }}{{ end }}
{{- with $option.Description }}
{{- $desc := $option.Description }}
{{ indent $desc 10 }}
Expand Down
14 changes: 7 additions & 7 deletionscli/testdata/coder_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -47,27 +47,27 @@ Coder v0.0.0-devel — A tool for provisioning self-hosted development environme
Global options are applied to all commands. They can be set using environment
variables or flags.

--global-config, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
Path to the global `coder` config directory.

--header, $CODER_HEADERstring-array
--headerstring-array, $CODER_HEADER
Additional HTTP headers added to all requests. Provide as key=value.
Can be specified multiple times.

--no-feature-warning, $CODER_NO_FEATURE_WARNING bool
--no-feature-warning bool, $CODER_NO_FEATURE_WARNING
Suppress warnings about unlicensed features.

--no-version-warning, $CODER_NO_VERSION_WARNING bool
--no-version-warning bool, $CODER_NO_VERSION_WARNING
Suppress warning when client and server versions do not match.

--token, $CODER_SESSION_TOKEN string
--token string, $CODER_SESSION_TOKEN
Specify an authentication token. For security reasons setting
CODER_SESSION_TOKEN is preferred.

--url, $CODER_URL url
--url url, $CODER_URL
URL to a deployment.

-v, --verbose, $CODER_VERBOSE bool
-v, --verbose bool, $CODER_VERBOSE
Enable verbose output.

---
Expand Down
8 changes: 4 additions & 4 deletionscli/testdata/coder_agent_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,19 +3,19 @@ Usage: coder agent [flags]
Starts the Coder workspace agent.

Options
--auth, $CODER_AGENT_AUTH (default: token)
--auth string, $CODER_AGENT_AUTH (default: token)
Specify the authentication type to use for the agent.

--log-dir, $CODER_AGENT_LOG_DIR (default: /tmp)
--log-dir string, $CODER_AGENT_LOG_DIR (default: /tmp)
Specify the location for the agent log files.

--no-reap bool
Do not start a process reaper.

--pprof-address, $CODER_AGENT_PPROF_ADDRESS (default: 127.0.0.1:6060)
--pprof-address string, $CODER_AGENT_PPROF_ADDRESS (default: 127.0.0.1:6060)
The address to serve pprof.

--ssh-max-timeout, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 0)
--ssh-max-timeout duration, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 0)
Specify the max timeout for a SSH connection.

---
Expand Down
8 changes: 4 additions & 4 deletionscli/testdata/coder_config-ssh_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,19 +12,19 @@ Add an SSH Host entry for your workspaces "ssh coder.workspace"
$ coder config-ssh --dry-run

Options
-n, --dry-run, $CODER_SSH_DRY_RUN bool
-n, --dry-run bool, $CODER_SSH_DRY_RUN
Perform a trial run with no changes made, showing a diff at the end.

--ssh-config-file, $CODER_SSH_CONFIG_FILE (default: ~/.ssh/config)
--ssh-config-file string, $CODER_SSH_CONFIG_FILE (default: ~/.ssh/config)
Specifies the path to an SSH config.

--ssh-host-prefix string
Override the default host prefix.

-o, --ssh-option, $CODER_SSH_CONFIG_OPTSstring-array
-o, --ssh-optionstring-array, $CODER_SSH_CONFIG_OPTS
Specifies additional SSH options to embed in each host stanza.

--use-previous-options, $CODER_SSH_USE_PREVIOUS_OPTIONS bool
--use-previous-options bool, $CODER_SSH_USE_PREVIOUS_OPTIONS
Specifies whether or not to keep options from previous run of
config-ssh.

Expand Down
10 changes: 5 additions & 5 deletionscli/testdata/coder_create_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,22 +3,22 @@ Usage: coder create [flags] [name]
Create a workspace

Options
--parameter-file, $CODER_PARAMETER_FILE string
--parameter-file string, $CODER_PARAMETER_FILE
Specify a file path with parameter values.

--rich-parameter-file, $CODER_RICH_PARAMETER_FILE string
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
Specify a file path with values for rich parameters defined in the
template.

--start-at, $CODER_WORKSPACE_START_AT string
--start-at string, $CODER_WORKSPACE_START_AT
Specify the workspace autostart schedule. Check `coder schedule start
--help` for the syntax.

--stop-after, $CODER_WORKSPACE_STOP_AFTER duration
--stop-after duration, $CODER_WORKSPACE_STOP_AFTER
Specify a duration after which the workspace should shut down (e.g.
8h).

-t, --template, $CODER_TEMPLATE_NAME string
-t, --template string, $CODER_TEMPLATE_NAME
Specify a template name.

-y, --yes bool
Expand Down
2 changes: 1 addition & 1 deletioncli/testdata/coder_dotfiles_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ Personalize your workspace by applying a canonical dotfiles repository
$ coder dotfiles --yes git@github.com:example/dotfiles.git

Options
--symlink-dir, $CODER_SYMLINK_DIR string
--symlink-dir string, $CODER_SYMLINK_DIR
Specifies the directory for the dotfiles symlink destinations. If
empty, will use $HOME.

Expand Down
6 changes: 3 additions & 3 deletionscli/testdata/coder_list_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,14 +8,14 @@ Aliases: ls
-a, --all bool
Specifies whether all workspaces will be listed or not.

-c, --column (default: workspace,template,status,last built,outdated,starts at,stops after)
-c, --columnstring-array(default: workspace,template,status,last built,outdated,starts at,stops after)
Columns to display in table output. Available columns: workspace,
template, status, last built, outdated, starts at, stops after.

-o, --output (default: table)
-o, --outputstring(default: table)
Output format. Available formats: table, json.

--search (default: owner:me)
--searchstring(default: owner:me)
Search for a workspace with a query.

---
Expand Down
8 changes: 4 additions & 4 deletionscli/testdata/coder_login_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,19 +3,19 @@ Usage: coder login [flags] <url>
Authenticate with Coder deployment

Options
--first-user-email, $CODER_FIRST_USER_EMAIL string
--first-user-email string, $CODER_FIRST_USER_EMAIL
Specifies an email address to use if creating the first user for the
deployment.

--first-user-password, $CODER_FIRST_USER_PASSWORD string
--first-user-password string, $CODER_FIRST_USER_PASSWORD
Specifies a password to use if creating the first user for the
deployment.

--first-user-trial, $CODER_FIRST_USER_TRIAL bool
--first-user-trial bool, $CODER_FIRST_USER_TRIAL
Specifies whether a trial license should be provisioned for the Coder
deployment or not.

--first-user-username, $CODER_FIRST_USER_USERNAME string
--first-user-username string, $CODER_FIRST_USER_USERNAME
Specifies a username to use if creating the first user for the
deployment.

Expand Down
6 changes: 3 additions & 3 deletionscli/testdata/coder_ping_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,13 +3,13 @@ Usage: coder ping [flags] <workspace>
Ping a workspace

Options
-n, --num (default: 10)
-n, --numint(default: 10)
Specifies the number of pings to perform.

-t, --timeout (default: 5s)
-t, --timeoutduration(default: 5s)
Specifies how long to wait for a ping to complete.

--wait (default: 1s)
--waitduration(default: 1s)
Specifies how long to wait between pings.

---
Expand Down
4 changes: 2 additions & 2 deletionscli/testdata/coder_port-forward_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,10 +23,10 @@ Aliases: tunnel
$ coder port-forward <workspace> --tcp 8080,9000:3000,9090-9092,10000-10002:10010-10012

Options
-p, --tcp, $CODER_PORT_FORWARD_TCPstring-array
-p, --tcpstring-array, $CODER_PORT_FORWARD_TCP
Forward TCP port(s) from the workspace to the local machine.

--udp, $CODER_PORT_FORWARD_UDPstring-array
--udpstring-array, $CODER_PORT_FORWARD_UDP
Forward UDP port(s) from the workspace to the local machine. The UDP
connection has TCP-like semantics to support stateful UDP protocols.

Expand Down
2 changes: 1 addition & 1 deletioncli/testdata/coder_reset-password_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@ Usage: coder reset-password [flags] <username>
Directly connect to the database to reset a user's password

Options
--postgres-url, $CODER_PG_CONNECTION_URL string
--postgres-url string, $CODER_PG_CONNECTION_URL
URL of a PostgreSQL database to connect to.

---
Expand Down
6 changes: 3 additions & 3 deletionscli/testdata/coder_scaletest_cleanup_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,14 +5,14 @@ Cleanup any orphaned scaletest resources
The strategy flags will apply to each stage of the cleanup process.

Options
--cleanup-concurrency, $CODER_SCALETEST_CLEANUP_CONCURRENCY (default: 1)
--cleanup-concurrency int, $CODER_SCALETEST_CLEANUP_CONCURRENCY (default: 1)
Number of concurrent cleanup jobs to run. 0 means unlimited.

--cleanup-job-timeout, $CODER_SCALETEST_CLEANUP_JOB_TIMEOUT (default: 5m)
--cleanup-job-timeout duration, $CODER_SCALETEST_CLEANUP_JOB_TIMEOUT (default: 5m)
Timeout per job. Jobs may take longer to complete under higher
concurrency limits.

--cleanup-timeout, $CODER_SCALETEST_CLEANUP_TIMEOUT (default: 30m)
--cleanup-timeout duration, $CODER_SCALETEST_CLEANUP_TIMEOUT (default: 30m)
Timeout for the entire cleanup run. 0 means unlimited.

---
Expand Down
56 changes: 28 additions & 28 deletionscli/testdata/coder_scaletest_create-workspaces_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,110 +7,110 @@ After creation, waits for the workspaces to finish building and fully come onlin
It is recommended that all rate limits are disabled on the server before running this scaletest. This test generates many login events which will be rate limited against the (most likely single) IP.

Options
--cleanup-concurrency, $CODER_SCALETEST_CLEANUP_CONCURRENCY (default: 1)
--cleanup-concurrency int, $CODER_SCALETEST_CLEANUP_CONCURRENCY (default: 1)
Number of concurrent cleanup jobs to run. 0 means unlimited.

--cleanup-job-timeout, $CODER_SCALETEST_CLEANUP_JOB_TIMEOUT (default: 5m)
--cleanup-job-timeout duration, $CODER_SCALETEST_CLEANUP_JOB_TIMEOUT (default: 5m)
Timeout per job. Jobs may take longer to complete under higher
concurrency limits.

--cleanup-timeout, $CODER_SCALETEST_CLEANUP_TIMEOUT (default: 30m)
--cleanup-timeout duration, $CODER_SCALETEST_CLEANUP_TIMEOUT (default: 30m)
Timeout for the entire cleanup run. 0 means unlimited.

--concurrency, $CODER_SCALETEST_CONCURRENCY (default: 1)
--concurrency int, $CODER_SCALETEST_CONCURRENCY (default: 1)
Number of concurrent jobs to run. 0 means unlimited.

--connect-hold, $CODER_SCALETEST_CONNECT_HOLD (default: 30s)
--connect-hold duration, $CODER_SCALETEST_CONNECT_HOLD (default: 30s)
How long to hold the WireGuard connection open for.

--connect-interval, $CODER_SCALETEST_CONNECT_INTERVAL (default: 1s)
--connect-interval duration, $CODER_SCALETEST_CONNECT_INTERVAL (default: 1s)
How long to wait between making requests to the --connect-url once the
connection is established.

--connect-mode, $CODER_SCALETEST_CONNECT_MODE (default: derp) one of derp|direct
--connect-mode derp|direct, $CODER_SCALETEST_CONNECT_MODE (default: derp)
Mode to use for connecting to the workspace.

--connect-timeout, $CODER_SCALETEST_CONNECT_TIMEOUT (default: 5s)
--connect-timeout duration, $CODER_SCALETEST_CONNECT_TIMEOUT (default: 5s)
Timeout for each request to the --connect-url.

--connect-url, $CODER_SCALETEST_CONNECT_URL string
--connect-url string, $CODER_SCALETEST_CONNECT_URL
URL to connect to inside the the workspace over WireGuard. If not
specified, no connections will be made over WireGuard.

-c, --count, $CODER_SCALETEST_COUNT (default: 1)
-c, --count int, $CODER_SCALETEST_COUNT (default: 1)
Required: Number of workspaces to create.

--job-timeout, $CODER_SCALETEST_JOB_TIMEOUT (default: 5m)
--job-timeout duration, $CODER_SCALETEST_JOB_TIMEOUT (default: 5m)
Timeout per job. Jobs may take longer to complete under higher
concurrency limits.

--no-cleanup, $CODER_SCALETEST_NO_CLEANUP bool
--no-cleanup bool, $CODER_SCALETEST_NO_CLEANUP
Do not clean up resources after the load test has finished. Useful for
debugging.

--no-plan, $CODER_SCALETEST_NO_PLAN bool
--no-plan bool, $CODER_SCALETEST_NO_PLAN
Skip the dry-run step to plan the workspace creation. This step
ensures that the given parameters are valid for the given template.

--no-wait-for-agents, $CODER_SCALETEST_NO_WAIT_FOR_AGENTS bool
--no-wait-for-agents bool, $CODER_SCALETEST_NO_WAIT_FOR_AGENTS
Do not wait for agents to start before marking the test as succeeded.
This can be useful if you are running the test against a template that
does not start the agent quickly.

--output, $CODER_SCALETEST_OUTPUTS (default: text)
--output string-array, $CODER_SCALETEST_OUTPUTS (default: text)
Output format specs in the format "<format>[:<path>]". Not specifying
a path will default to stdout. Available formats: text, json.

--parameter, $CODER_SCALETEST_PARAMETERSstring-array
--parameterstring-array, $CODER_SCALETEST_PARAMETERS
Parameters to use for each workspace. Can be specified multiple times.
Overrides any existing parameters with the same name from
--parameters-file. Format: key=value.

--parameters-file, $CODER_SCALETEST_PARAMETERS_FILE string
--parameters-file string, $CODER_SCALETEST_PARAMETERS_FILE
Path to a YAML file containing the parameters to use for each
workspace.

--run-command, $CODER_SCALETEST_RUN_COMMAND string
--run-command string, $CODER_SCALETEST_RUN_COMMAND
Command to run inside each workspace using reconnecting-pty (i.e. web
terminal protocol). If not specified, no command will be run.

--run-expect-output, $CODER_SCALETEST_RUN_EXPECT_OUTPUT string
--run-expect-output string, $CODER_SCALETEST_RUN_EXPECT_OUTPUT
Expect the command to output the given string (on a single line). If
the command does not output the given string, it will be marked as
failed.

--run-expect-timeout, $CODER_SCALETEST_RUN_EXPECT_TIMEOUT bool
--run-expect-timeout bool, $CODER_SCALETEST_RUN_EXPECT_TIMEOUT
Expect the command to timeout. If the command does not finish within
the given --run-timeout, it will be marked as succeeded. If the
command finishes before the timeout, it will be marked as failed.

--run-log-output, $CODER_SCALETEST_RUN_LOG_OUTPUT bool
--run-log-output bool, $CODER_SCALETEST_RUN_LOG_OUTPUT
Log the output of the command to the test logs. This should be left
off unless you expect small amounts of output. Large amounts of output
will cause high memory usage.

--run-timeout, $CODER_SCALETEST_RUN_TIMEOUT (default: 5s)
--run-timeout duration, $CODER_SCALETEST_RUN_TIMEOUT (default: 5s)
Timeout for the command to complete.

-t, --template, $CODER_SCALETEST_TEMPLATE string
-t, --template string, $CODER_SCALETEST_TEMPLATE
Required: Name or ID of the template to use for workspaces.

--timeout, $CODER_SCALETEST_TIMEOUT (default: 30m)
--timeout duration, $CODER_SCALETEST_TIMEOUT (default: 30m)
Timeout for the entire test run. 0 means unlimited.

--trace, $CODER_SCALETEST_TRACE bool
--trace bool, $CODER_SCALETEST_TRACE
Whether application tracing data is collected. It exports to a backend
configured by environment variables. See:
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md.

--trace-coder, $CODER_SCALETEST_TRACE_CODER bool
--trace-coder bool, $CODER_SCALETEST_TRACE_CODER
Whether opentelemetry traces are sent to Coder. We recommend keeping
this disabled unless we advise you to enable it.

--trace-honeycomb-api-key, $CODER_SCALETEST_TRACE_HONEYCOMB_API_KEY string
--trace-honeycomb-api-key string, $CODER_SCALETEST_TRACE_HONEYCOMB_API_KEY
Enables trace exporting to Honeycomb.io using the provided API key.

--trace-propagate, $CODER_SCALETEST_TRACE_PROPAGATE bool
--trace-propagate bool, $CODER_SCALETEST_TRACE_PROPAGATE
Enables trace propagation to the Coder backend, which will be used to
correlate server-side spans with client-side spans. Only enable this
if the server is configured with the exact same tracing configuration
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp