This repository was archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
feat: Add update command to coder-cli #417
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d256581
feat: Add update command to coder-cli
johnstcn 972847e
internal/cmd/update_test.go: refactor unit tests
johnstcn 597afe1
fixup! internal/cmd/update_test.go: refactor unit tests
johnstcn 1373e79
internal/cmd/update_test.go: more tests
johnstcn 513282a
internal/cmd/update_test.go: create dirs in memfs
johnstcn 5bf7f56
internal/cmd/update_test.go: test for windows
johnstcn dabd178
fixup! internal/cmd/update_test.go: test for windows
johnstcn dcfeec1
internal/cmd/update.go: replace semver library
johnstcn 0801cfc
internal/cmd/update.go: use /api/private/version instead of sniffing …
johnstcn f6ce76f
gendocs
johnstcn 6371084
internal/cmd/update.go: use os.Executable() instead of os.Args[0]
johnstcn bdb998e
internal/cmd/update.go: check path prefixes
johnstcn 306686c
lint
johnstcn 60a75a1
internal/cmd/update_test.go: assertCLIError helper function for clog.…
johnstcn 26984a2
internal/cmd/update.go: allow explicitly specifying version
johnstcn bcaac7b
internal/cmd/update.go: validate we can exec new binary
johnstcn 2002876
fixup! internal/cmd/update.go: validate we can exec new binary
johnstcn 3ba1bed
internal/cmd/update.go: query github releases api for assets
johnstcn 6238053
internal/cmd/update.go: handle copy error from archive
johnstcn 24df4f7
internal/cmd/update.go: handle windows-specific behaviours
johnstcn 21dd836
fixup! internal/cmd/update.go: handle windows-specific behaviours
johnstcn e064c47
fixup! internal/cmd/update.go: handle windows-specific behaviours
johnstcn eefa2f3
gofmt
johnstcn 0e63d2f
internal/cmd/users_test.go: assert CICD user instead of admin
johnstcn 60944f0
Revert "internal/cmd/users_test.go: assert CICD user instead of admin"
johnstcn c8943ed
Merge branch 'master' into cianjohnston/autoupdate
johnstcn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## coder update | ||
|
||
Update coder binary | ||
|
||
### Synopsis | ||
|
||
Update coder to the version matching a given coder instance. | ||
|
||
``` | ||
coder update [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--coder string query this coder instance for the matching version | ||
--force do not prompt for confirmation | ||
-h, --help help for update | ||
--version string explicitly specify which version to fetch and install | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-v, --verbose show verbose output | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.