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 - Fork18
feat: Add update command to coder-cli#417
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
26 commits Select commitHold shift + click to select a range
d256581
feat: Add update command to coder-cli
johnstcn972847e
internal/cmd/update_test.go: refactor unit tests
johnstcn597afe1
fixup! internal/cmd/update_test.go: refactor unit tests
johnstcn1373e79
internal/cmd/update_test.go: more tests
johnstcn513282a
internal/cmd/update_test.go: create dirs in memfs
johnstcn5bf7f56
internal/cmd/update_test.go: test for windows
johnstcndabd178
fixup! internal/cmd/update_test.go: test for windows
johnstcndcfeec1
internal/cmd/update.go: replace semver library
johnstcn0801cfc
internal/cmd/update.go: use /api/private/version instead of sniffing …
johnstcnf6ce76f
gendocs
johnstcn6371084
internal/cmd/update.go: use os.Executable() instead of os.Args[0]
johnstcnbdb998e
internal/cmd/update.go: check path prefixes
johnstcn306686c
lint
johnstcn60a75a1
internal/cmd/update_test.go: assertCLIError helper function for clog.…
johnstcn26984a2
internal/cmd/update.go: allow explicitly specifying version
johnstcnbcaac7b
internal/cmd/update.go: validate we can exec new binary
johnstcn2002876
fixup! internal/cmd/update.go: validate we can exec new binary
johnstcn3ba1bed
internal/cmd/update.go: query github releases api for assets
johnstcn6238053
internal/cmd/update.go: handle copy error from archive
johnstcn24df4f7
internal/cmd/update.go: handle windows-specific behaviours
johnstcn21dd836
fixup! internal/cmd/update.go: handle windows-specific behaviours
johnstcne064c47
fixup! internal/cmd/update.go: handle windows-specific behaviours
johnstcneefa2f3
gofmt
johnstcn0e63d2f
internal/cmd/users_test.go: assert CICD user instead of admin
johnstcn60944f0
Revert "internal/cmd/users_test.go: assert CICD user instead of admin"
johnstcnc8943ed
Merge branch 'master' into cianjohnston/autoupdate
johnstcnFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionsdocs/coder.md
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
31 changes: 31 additions & 0 deletionsdocs/coder_update.md
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 | ||
2 changes: 2 additions & 0 deletionsgo.mod
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 |
---|---|---|
@@ -5,6 +5,7 @@ go 1.14 | ||
require ( | ||
cdr.dev/slog v1.4.1 | ||
cdr.dev/wsep v0.0.0-20200728013649-82316a09813f | ||
github.com/Masterminds/semver/v3 v3.1.1 | ||
github.com/briandowns/spinner v1.16.0 | ||
github.com/cli/safeexec v1.0.0 | ||
github.com/fatih/color v1.12.0 | ||
@@ -23,6 +24,7 @@ require ( | ||
github.com/pion/webrtc/v3 v3.0.32 | ||
github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 | ||
github.com/rjeczalik/notify v0.9.2 | ||
github.com/spf13/afero v1.6.0 | ||
johnstcn marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
github.com/spf13/cobra v1.2.1 | ||
github.com/stretchr/testify v1.7.0 | ||
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 | ||
3 changes: 3 additions & 0 deletionsgo.sum
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
1 change: 1 addition & 0 deletionsinternal/cmd/cmd.go
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.
Uh oh!
There was an error while loading.Please reload this page.
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.