8000 chore: Add alias `coder agent` by f0ssel · Pull Request #986 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: Add alias coder agent #986

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 4 commits into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
get last references
  • Loading branch information
f0ssel committed Apr 13, 2022
commit 9c07236a6ce3debac75a9a4f71100572643e2166
4 changes: 2 additions & 2 deletions provisionersdk/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ curl -fsSL ${ACCESS_URL}bin/coder-linux-amd64 -o $BINARY_LOCATION
chmod +x $BINARY_LOCATION
export CODER_AUTH="${AUTH_TYPE}"
export CODER_URL="${ACCESS_URL}"
exec $BINARY_LOCATION workspaces agent
exec $BINARY_LOCATION agent
`,
},
"darwin": {
Expand All @@ -40,7 +40,7 @@ curl -fsSL ${ACCESS_URL}bin/coder-darwin-amd64 -o $BINARY_LOCATION
chmod +x $BINARY_LOCATION
export CODER_AUTH="${AUTH_TYPE}"
export CODER_URL="${ACCESS_URL}"
exec $BINARY_LOCATION workspaces agent
exec $BINARY_LOCATION agent
`,
},
}
Expand Down
2 changes: 1 addition & 1 deletion provisionersdk/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ func TestAgentScript(t *testing.T) {
require.NoError(t, err)
// Because we use the "echo" binary, we should expect the arguments provided
// as the response to executing our script.
require.Equal(t, "workspaces agent", strings.TrimSpace(string(output)))
require.Equal(t, "agent", strings.TrimSpace(string(output)))
})
}
0