Skip to content

feat: add one shot commands to the coder ssh command #17779

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 11 commits into from
May 16, 2025
Merged
Prev Previous commit
Next Next commit
chore: improve ssh missing args error message
  • Loading branch information
brettkolodny committed May 12, 2025
commit bed4103c187631efc284a697a0ca63a0947e20eb
2 changes: 1 addition & 1 deletion cli/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
return func(i *serpent.Invocation) error {
got := len(i.Args)
if got < 1 {
return xerrors.Errorf("expected at least 1 arg but got %v %v", got, i.Args)
return xerrors.New("expected the name of a workspace")
}

return next(i)
Expand Down Expand Up @@ -564,7 +564,7 @@
if err != nil {
return xerrors.Errorf("run command: %w", err)
}
} else {

Check failure on line 567 in cli/ssh.go

View workflow job for this annotation

GitHub Actions / lint

empty-lines: extra empty line at the end of a block (revive)
err = sshSession.Shell()
if err != nil {
return xerrors.Errorf("start shell: %w", err)
Expand Down
Loading