We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
% coder update -h Update a workspace to the latest template version Usage: coder update [flags]
This usage is incorrect, as it needs a workspace name as an arg.
Also, we panic instead of giving an error message when you run it without a workspace name
% coder update panic: runtime error: index out of range [0] with length 0 goroutine 1 [running]: github.com/coder/coder/cli.update.func1(0x1400079e000, {0x10c681598, 0x0, 0x0?}) /Users/spike/repos/coder/cli/update.go:28 +0x52c github.com/spf13/cobra.(*Command).execute(0x1400079e000, {0x10c681598, 0x0, 0x0}) /Users/spike/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872 +0x4d0 github.com/spf13/cobra.(*Command).ExecuteC(0x14000720c80) /Users/spike/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990 +0x354 main.main() /Users/spike/repos/coder/cmd/coder/main.go:18 +0xa8
coder update <workspace> [flags]
coder update
The text was updated successfully, but these errors were encountered:
sreya
Successfully merging a pull request may close this issue.
Problem
This usage is incorrect, as it needs a workspace name as an arg.
Also, we panic instead of giving an error message when you run it without a workspace name
Acceptance criteria
coder update <workspace> [flags]
coder update
with no args should throw an error (or prompt user for workspace)The text was updated successfully, but these errors were encountered: