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: update command to work on both unix and windows
  • Loading branch information
brettkolodny committed May 13, 2025
commit aaaab01950383204ee8244f40bfc389f36b3361d
4 changes: 2 additions & 2 deletions cli/ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ func TestSSH_CoderConnect(t *testing.T) {
t.Parallel()

client, workspace, agentToken := setupWorkspaceForAgent(t)
inv, root := clitest.New(t, "ssh", workspace.Name, "echo hello world")
inv, root := clitest.New(t, "ssh", workspace.Name, "echo 'hello world'")
clitest.SetupConfig(t, client, root)

// Capture command output
Expand Down Expand Up @@ -2311,7 +2311,7 @@ func TestSSH_CoderConnect(t *testing.T) {
defer session.Close()

// Capture and verify command output
output, err := session.Output("echo hello back")
output, err := session.Output("echo 'hello back'")
require.NoError(t, err)
assert.Contains(t, string(output), "hello back")

Expand Down
Loading