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
fix: lint
  • Loading branch information
brettkolodny committed May 12, 2025
commit 4026c077dd4016d03e4ff16bd1999eda70151045
1 change: 0 additions & 1 deletion cli/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,6 @@ func (r *RootCmd) ssh() *serpent.Command {
}
return xerrors.Errorf("session ended: %w", err)
}

}
return nil
},
Expand Down
3 changes: 1 addition & 2 deletions cli/ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
"golang.org/x/crypto/ssh"
gossh "golang.org/x/crypto/ssh"
gosshagent "golang.org/x/crypto/ssh/agent"
"golang.org/x/sync/errgroup"
"golang.org/x/xerrors"
Expand Down Expand Up @@ -2258,7 +2257,7 @@ func TestSSH_CoderConnect(t *testing.T) {

err := inv.WithContext(ctx).Run()
assert.Error(t, err)
var exitErr *gossh.ExitError
var exitErr *ssh.ExitError
assert.True(t, errors.As(err, &exitErr))
assert.Equal(t, 1, exitErr.ExitStatus())
})
Expand Down
Loading