-
Notifications
You must be signed in to change notification settings - Fork 928
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
192 commits
Select commit
Hold shift + click to select a range
0dbcd12
Build out basic command scaffold
ammario 18d31bf
Fixup middleware
ammario ec8e626
Support global flags
ammario e54d393
Make progress...
ammario 518b51d
486 problems left
ammario c9820fb
go mod tidy
ammario 32a1759
330 problems left...
ammario 5af1142
208 problems left...
ammario 5613d3b
185 problems left...
ammario b713372
359 problems left...
ammario 7884f32
354 problems left...
ammario a58d15e
434 problems left...
ammario c8c9e51
511 problems left...
ammario 274c84d
Assorted changes
ammario 6fb72b5
621 problems remaining...
ammario eeb9500
576 problems remaining...
ammario e8959cf
500 problems remaining...
ammario 799ace7
425 problems remaining...
ammario 25682f6
417 problems left...
ammario 88a64fc
Merge remote-tracking branch 'origin/main' into clibase-all
ammario c0a77cc
396 problems left...
ammario 6757d66
330 problems left...
ammario 6c0b64a
248 problems left...
ammario d028e1e
162 problems left...
ammario a678576
102 problems left...
ammario c4e8925
44 problems left...
ammario 46f0339
0 (compilation) problems left...
ammario d242a84
Get stuck on git askpass
ammario 0706c19
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 6757d84
deployment values
ammario 113ad13
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 855e97d
Fix GitAskPass tests
ammario 04977de
Fix Dotfiles tests
ammario d183ce3
Fix ResetPassword test
ammario ee6b65b
help wip
ammario d19cae5
chore: move over some of the clibase changes
ammario a57639b
Port over some of clibase
ammario a571e0c
Simplify Invoke calls
ammario 2b02e65
grr fmt.Errorf
ammario 2884aa6
fix: treat empty env as defaults (#6538)
ammario 71f2c32
Reduce indirection in clibasetest.IO
ammario c6621bb
Cancel context when command finishes
ammario be7f957
oops typo
ammario 2f99f87
Merge branch 'some-clibase' into clibase-all
ammario aac0fc0
Merge remote-tracking branch 'origin/main' into clibase-all
ammario bfbd0f5
Test Help
ammario 7d12d64
Regen golden files!
ammario d5228c3
Sanity-check command options
ammario 6f3575e
Progress
ammario 029bd27
Limit newlines!
ammario 74e5819
identation
ammario 42d8011
Fix schedule test
ammario 781d700
Fix CreateAdminUser
ammario 94823df
Pass Rename + SSH
ammario c2fdc2c
Fix a bunch of server tests
ammario aee0627
Agent tests pass!
ammario f1d9c22
fixup! Agent tests pass!
ammario eca5625
Get in insecure reader
ammario be8dcc8
Speed up SSH keygen
ammario 2500af8
Fix all tests in ./cli
ammario e776504
Enterprise cli tests pass
ammario d6adedf
Start working on clidocsgen
ammario 4f21d52
Hmm
ammario 1e5d223
docs v1
ammario ad810f6
docs skeleton done
ammario 4f52669
It's done!
ammario 303f0ab
fmt
ammario 51c132e
fixup! fmt
ammario 6c697f6
Remove remaining call to cobra
ammario 7ab0710
Merge remote-tracking branch 'origin/main' into clibase-all
ammario fc4342b
fix clitest
ammario 0b1ed6f
Fix server tests
ammario b759071
Upgrade slog
ammario 412f054
go mod tidy
ammario 466c3dc
Erase cobra from memory
ammario d3dab44
Pass linter
ammario bf93f2b
Pass lint/gen
ammario f5e2611
Improve error presentation
ammario 64a28b8
config dir
ammario 3292af9
Refine error printing some more
ammario 039ef66
Fix flake
ammario df1e20a
sed: simplify tty attaches
ammario 746f27d
fix compilation bugs
ammario e8d6a47
Improve error formatting
ammario 9852f0b
Hmm testutil
ammario 36212f7
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 1cd34ef
Minor code style
ammario 8216640
fix lint
ammario 6dc4578
fixup! fix lint
ammario 97233c2
rng
ammario 2065ddc
Get rid of suspect fastrand
ammario f9cd94e
Restore long timeout in Server/Postgres test
ammario 8f0b0fa
Increase default command timeout
ammario 65e9dc3
minor cleanup
ammario 527e7ef
Windows?
ammario 6ec84aa
WINDOWS
ammario 95508bd
Big man on campus
ammario 695b56d
WINDNDDODODODOOOOWWS
ammario 980768b
fixup! WINDNDDODODODOOOOWWS
ammario 452ffdf
fixup! WINDNDDODODODOOOOWWS
ammario 371e34d
fixup! WINDNDDODODODOOOOWWS
ammario 888292c
fixup! WINDNDDODODODOOOOWWS
ammario f5fcc2c
fixup! WINDNDDODODODOOOOWWS
ammario 8e04d8b
fixup! WINDNDDODODODOOOOWWS
ammario 1b6062b
fixup! WINDNDDODODODOOOOWWS
ammario 71e5700
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 59a53b4
WIN WIN WIN DOWS
ammario 2acc7f0
fixup! WIN WIN WIN DOWS
ammario faa3515
Address review comments
ammario 1b281af
Add "unknown command" error
ammario 1cba181
Reject args to coder server
ammario 1e29b7a
Update cli/cliui/log.go
ammario ba9443a
Start addressing mathias feedback
ammario 981bf55
Hit a couple more problems
ammario e7d7d8a
fix: slim
ammario 8da9ed3
Update cli/cliui/log.go
ammario e176250
Remove all redundant Name fields
ammario 813a30e
Address more comments
ammario b74c576
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 17cdcfc
WIP debug Create
ammario 9958d26
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 4f4c66c
Improve errors
ammario ff3b858
found it!
ammario 1f7eef1
Fix descriptions in entcli
ammario 79a66c5
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 2781b7c
type out CODER_ prefix
ammario dc60ac8
fix root usage
ammario e21d488
Fix test hang
ammario 4e6e434
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 22a6978
Fix goroutine link in cliui
ammario d4ae272
Show subcommands first in help
ammario 7bf9b21
Fix wrapping in subcommands
ammario 3611907
Call out global options in each command's help
ammario ed700b8
Address some more comments
ammario 0671e00
SCALETEST
ammario 7d03079
Improve error formatting
ammario 218f57e
Improve error style even more!
ammario c075ee2
Remove `coder ssh --shuffle`, amongst other improvements
ammario c6e7689
docs: align markdown names
ammario 4435212
docs: show full use line!
ammario 79d4130
docs: don't show empty tables
ammario dcf5b50
fix lint
ammario 03d8a19
Update golden files
ammario e122a9c
Merge remote-tracking branch 'origin/main' into clibase-all
ammario c72050b
Fix help whitespace issues
mafredri c33954c
Sort flags
mafredri a774c0e
Sort commands
mafredri 3cb50b3
Run make gen and update-golden-files
mafredri e33da7a
Show shorthand flag first
mafredri 1b81037
Run make gen and update-golden-files
mafredri e96d155
Fix prepare all after options
mafredri 81c4543
Address review comments
ammario 4338598
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 359923b
Remove periods from examples
ammario 8e420dd
Fix list outputs in golden files!
ammario bbdcb7e
fixup! Fix list outputs in golden files!
ammario cc0a998
Fix scaletest descriptions
ammario 8dbf57c
Fix remaining issues!
ammario 3495efc
Remove cache directory
ammario de08cde
Fix cache dir?
ammario 0544597
Add ErrorWaiter to clitest
ammario 7bc2f82
Print aliases
ammario 7c1acbf
Remove "t" alias
ammario 796b527
Fix up more of the diff... through scaletest
ammario 2413718
Add missing [flags]
ammario da716cf
make update-golden-files
ammario ca9ccba
Fix some more duplication + migration issues
ammario 9865ba8
make gen + messed up a bullet
ammario 38110ba
Fix dotfiles description
ammario 0cf7654
Fix scaletest wording
ammario 0bfcbee
Put aliases in docs too
ammario ac60ecb
Fix typo in scaletest
ammario 6255ddd
Remove excess whitespace from error
ammario 9ebd6e9
Remove (default: false) spam
ammario 85e252b
tangent: [flags] in usage linting
ammario 40a6914
Automatically add [flags]
ammario 5f1e374
Remove remaining ".:"
ammario 3a01d94
Merge remote-tracking branch 'origin/main' into clibase-all
ammario fb4eb88
Tests pass post merge
ammario 6cb6ef6
fmt & lint
ammario 919f768
Hide support links since it's flagless
ammario e6fa741
Automatically insert "rm" alias
ammario 44fcba5
Remove description wrapping
ammario dcc5943
Add back consistent type helpers
ammario ed49ce5
Revert remaining bad descriptions
ammario d5af663
Merge remote-tracking branch 'origin/main' into clibase-all
ammario cdda9fe
Fix output array formatting
ammario 0c5a778
Only show subcommand error when command doesn't take arguments
ammario f9679b8
Merge remote-tracking branch 'origin/main' into clibase-all
ammario 9b798ed
Fix compilation errors introduced by merge
ammario 907e26e
Use correct timeouts in agent tests
ammario 9dca6f2
Bump up test timeout
ammario File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit of a lossy migration. We used to wait for the command to exit before checking the logs. In theory there's a chance the logs haven't been flushed to disk yet when we check their size. In practice I doubt it will happen here, but this is a use-case we'll need to support going forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. Fixed with an ExpectMatch.