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
Fix some more duplication + migration issues
  • Loading branch information
@ammario
ammario committedMar 22, 2023
commitca9ccba31c496706a90a48eda56d799ae598d630
2 changes: 1 addition & 1 deletioncli/dotfiles.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,7 @@ func (r *RootCmd) dotfiles() *clibase.Cmd {
cmd := &clibase.Cmd{
Use: "dotfiles <git_repo_url>",
Middleware: clibase.RequireNArgs(1),
Short: "Checkout and install a dotfiles repository from a Git URL",
Short: "Personalize your repo by applying a canonical dotfiles repository",
Long: formatExamples(
example{
Description: "Check out and install a dotfiles repository without prompts",
Expand Down
2 changes: 1 addition & 1 deletioncli/portforward.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,7 +28,7 @@ func (r *RootCmd) portForward() *clibase.Cmd {
client := new(codersdk.Client)
cmd := &clibase.Cmd{
Use: "port-forward <workspace>",
Short: "Forward portsfrom machine to a workspace",
Short: "Forward portsbetween your local system and the workspace",
Aliases: []string{"tunnel"},
Long: formatExamples(
example{
Expand Down
2 changes: 1 addition & 1 deletioncli/root.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -267,7 +267,7 @@ func (r *RootCmd) Command(subcommands []*clibase.Cmd) *clibase.Cmd {
Flag: varVerbose,
FlagShorthand: "v",
Env: "CODER_VERBOSE",
Description: "Enable verboselogging.",
Description: "Enable verboseoutput.",
Value: clibase.BoolOf(&r.verbose),
Group: globalGroup,
},
Expand Down
11 changes: 5 additions & 6 deletionscli/scaletest.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,7 +36,6 @@ func (r *RootCmd) scaletest() *clibase.Cmd {
cmd := &clibase.Cmd{
Use: "scaletest",
Short: "Run a scale test against the Coder API",
Long: "Perform scale tests against the Coder server.",
Handler: func(inv *clibase.Invocation) error {
return inv.Command.HelpHandler(inv)
},
Expand DownExpand Up@@ -363,7 +362,7 @@ func (r *RootCmd) scaletestCleanup() *clibase.Cmd {
cmd := &clibase.Cmd{
Use: "cleanup",
Short: "Cleanup any orphaned scaletest resources",
Long: "Cleanup scaletest workspaces, then cleanup scaletest users.The strategy flags will apply to each stage of the cleanup process.",
Long: "The strategy flags will apply to each stage of the cleanup process.",
Middleware: clibase.Chain(
r.InitClient(client),
),
Expand DownExpand Up@@ -546,8 +545,8 @@ func (r *RootCmd) scaletestCreateWorkspaces() *clibase.Cmd {

cmd := &clibase.Cmd{
Use: "create-workspaces",
Short: "Creates many workspaces and waits for them to be ready",
Long: `Creates many users, then creates a workspace for each user andwaits forthem finish building and fully come online. Optionally runs a command inside each workspace, and connects to the workspace over WireGuard.
Short: "Creates manyusers andworkspaces and waits for them to be ready",
Long: `After creation,waits forthe workspaces finish building and fully come online. Optionally runs a command inside each workspace, and connects to the workspace over WireGuard.

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.`,
Middleware: r.InitClient(client),
Expand DownExpand Up@@ -857,7 +856,7 @@ parameters are valid for the given template.`,
{
Flag: "no-cleanup",
Env: "CODER_SCALETEST_NO_CLEANUP",
Description: "Do not clean upworkspaces after the load test has finished. " +
Description: "Do not clean upresources after the load test has finished. " +
"Useful for debugging.",
Value: clibase.BoolOf(&noCleanup),
},
Expand DownExpand Up@@ -913,7 +912,7 @@ not start the agent quickly.`,
Flag: "connect-mode",
Env: "CODER_SCALETEST_CONNECT_MODE",
Default: "derp",
Description: "WireGuard connection mode.",
Description: "Connection mode.",
Value: clibase.EnumOf(&connectMode, "derp", "direct"),
},
{
Expand Down
3 changes: 1 addition & 2 deletionscli/schedule.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -46,8 +46,7 @@ When enabling scheduled stop, enter a duration in one of the following formats:
* 2m (2 minutes)
* 2 (2 minutes)
`
scheduleOverrideDescriptionLong = `Override the stop time of a currently running workspace instance.
* The new stop time is calculated from *now*.
scheduleOverrideDescriptionLong = `* The new stop time is calculated from *now*.
* The new stop time must be at least 30 minutes in the future.
* The workspace template may restrict the maximum workspace runtime.
`
Expand Down
4 changes: 2 additions & 2 deletionscli/ssh.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -246,7 +246,7 @@ func (r *RootCmd) ssh() *clibase.Cmd {
Flag: "forward-gpg",
FlagShorthand: "G",
Env: "CODER_SSH_FORWARD_GPG",
Description: "Specifies whether to forward the GPG agent. Unsupported on Windows workspaces, but supports all clients. Requires gnupg (gpg,gpg2, gpgsm)andgpg-agenttobeinstalled onthehost.",
Description: "Specifies whether to forward the GPG agent. Unsupported on Windows workspaces, but supports all clients. Requires gnupg (gpg,gpgconf) on both the clientandworkspace. The GPGagentmust alreadyberunning locally and will not be started by for you. If a GPG agent is already running intheworkspace, coder will attempt to kill it.",
Value: clibase.BoolOf(&forwardGPG),
},
{
Expand All@@ -265,7 +265,7 @@ func (r *RootCmd) ssh() *clibase.Cmd {
{
Flag: "no-wait",
Env: "CODER_SSH_NO_WAIT",
Description: "Specifies whether to wait for the workspace to be ready before connecting.",
Description: "Specifies whether to wait for the workspace to be ready before connecting (only applicable when the login before ready option has not been enabled). Note that the workspace agent may still be in the process of executing the startup script and the workspace may be in an incomplete state.",
Value: clibase.BoolOf(&noWait),
},
}
Expand Down
7 changes: 4 additions & 3 deletionscli/testdata/coder_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,12 +15,13 @@ environments with Terraform.
coder.workspace"
create Create a workspace
delete Delete a workspace
dotfiles Checkout and install a dotfiles repository from a Git URL
dotfiles Personalize your repo by applying a canonical dotfiles
repository
list List workspaces
login Authenticate with Coder deployment
logout Unauthenticate your local session
ping Ping a workspace
port-forward Forward portsfrom machine to a workspace
port-forward Forward portsbetween your local system and the workspace
publickey Output your Coder public key used for Git operations
rename Rename a workspace
reset-password Directly connect to the database to reset a user's
Expand DownExpand Up@@ -68,7 +69,7 @@ variables or flags.
URL to a deployment.

-v, --verbose, $CODER_VERBOSE
Enable verboselogging.
Enable verboseoutput.

---
Report bugs and request features at https://github.com/coder/coder/issues/new
2 changes: 1 addition & 1 deletioncli/testdata/coder_dotfiles_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
Usage: coder dotfiles <git_repo_url>

Checkout and install a dotfiles repository from a Git URL
Personalize your repo by applying a canonical dotfiles repository

- Check out and install a dotfiles repository without prompts:

Expand Down
2 changes: 1 addition & 1 deletioncli/testdata/coder_port-forward_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
Usage: coder port-forward <workspace>

Forward portsfrom machine to a workspace
Forward portsbetween your local system and the workspace

Aliases: tunnel

Expand Down
5 changes: 2 additions & 3 deletionscli/testdata/coder_scaletest_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,11 +2,10 @@ Usage: coder scaletest

Run a scale test against the Coder API

Perform scale tests against the Coder server.

Subcommands
cleanup Cleanup any orphaned scaletest resources
create-workspaces Creates many workspaces and waits for them to be ready
create-workspaces Creates many users and workspaces and waits for them to
be ready

---
Run `coder --help` for a list of global options.
3 changes: 1 addition & 2 deletionscli/testdata/coder_scaletest_cleanup_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,8 +2,7 @@ Usage: coder scaletest cleanup

Cleanup any orphaned scaletest resources

Cleanup scaletest workspaces, then cleanup scaletest users. The strategy flags
will apply to each stage of the cleanup process.
The strategy flags will apply to each stage of the cleanup process.

Options
--cleanup-concurrency, $CODER_SCALETEST_CLEANUP_CONCURRENCY (default: 1)
Expand Down
14 changes: 7 additions & 7 deletionscli/testdata/coder_scaletest_create-workspaces_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
Usage: coder scaletest create-workspaces

Creates many workspaces and waits for them to be ready
Creates manyusers andworkspaces and waits for them to be ready

Creates many users, then creates a workspace for each userandwaits for them
finish building and fully come online.Optionally runs a command inside each
workspace, and connects to the workspaceover WireGuard.
After creation, waits for the workspaces finish buildingandfully come online.
Optionally runs a command inside each workspace, and connects to the workspace
over WireGuard.

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
Expand DownExpand Up@@ -32,7 +32,7 @@ against the (most likely single) IP.
connection is established.

--connect-mode, $CODER_SCALETEST_CONNECT_MODE (default: derp) one of derp|direct
WireGuard connection mode.
Connection mode.

--connect-timeout, $CODER_SCALETEST_CONNECT_TIMEOUT (default: 5s)
Timeout for each request to the --connect-url.
Expand All@@ -49,8 +49,8 @@ against the (most likely single) IP.
concurrency limits.

--no-cleanup, $CODER_SCALETEST_NO_CLEANUP
Do not clean upworkspaces after the load test has finished. Useful
fordebugging.
Do not clean upresources after the load test has finished. Useful for
debugging.

--no-plan, $CODER_SCALETEST_NO_PLAN
Skip the dry-run step to plan the workspace
Expand Down
3 changes: 1 addition & 2 deletionscli/testdata/coder_schedule_override-stop_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,8 +2,7 @@ Usage: coder schedule override-stop <workspace-name> <duration from now>

Edit stop time of active workspace

Override the stop time of a currently running workspace instance.
* The new stop time is calculated from *now*.
* The new stop time is calculated from *now*.
* The new stop time must be at least 30 minutes in the future.
* The workspace template may restrict the maximum workspace runtime.

Expand Down
11 changes: 8 additions & 3 deletionscli/testdata/coder_ssh_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,16 +9,21 @@ Start a shell into a workspace

-G, --forward-gpg, $CODER_SSH_FORWARD_GPG
Specifies whether to forward the GPG agent. Unsupported on Windows
workspaces, but supports all clients. Requires gnupg (gpg, gpg2,
gpgsm) and gpg-agent to be installed on the host.
workspaces, but supports all clients. Requires gnupg (gpg, gpgconfig)
on both the client and workspace. The GPG agent must already be
running locally and will not be started by for you. If a GPG agent is
already running in the workspace, coder will attempt to kill it.

--identity-agent, $CODER_SSH_IDENTITY_AGENT
Specifies which identity agent to use (overrides $SSH_AUTH_SOCK),
forward agent must also be enabled.

--no-wait, $CODER_SSH_NO_WAIT
Specifies whether to wait for the workspace to be ready before
connecting.
connecting (only applicable when the login before ready option has not
been enabled). Note that the workspace agent may still be in the
process of executing the startup script and the workspace may be in an
incomplete state.

--stdio, $CODER_SSH_STDIO
Specifies whether to emit SSH output over stdin/stdout.
Expand Down
3 changes: 1 addition & 2 deletionscli/testdata/coder_update_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,8 +2,7 @@ Usage: coder update <workspace>

Will update and start a given workspace if it is out of date.

Will update and start a given workspace if it is out of date. Use
--always-prompt to change the parameter values of the workspace.
Use --always-prompt to change the parameter values of the workspace.

Options
--always-prompt (default: false)
Expand Down
3 changes: 1 addition & 2 deletionscli/update.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,8 +19,7 @@ func (r *RootCmd) update() *clibase.Cmd {
Annotations: workspaceCommand,
Use: "update <workspace>",
Short: "Will update and start a given workspace if it is out of date.",
Long: "Will update and start a given workspace if it is out of date. Use --always-prompt to change " +
"the parameter values of the workspace.",
Long: "Use --always-prompt to change the parameter values of the workspace.",
Middleware: clibase.Chain(
clibase.RequireNArgs(1),
r.InitClient(client),
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp