Skip to content

Commit 8ad6bb1

Browse files
committed
move command
1 parent 7dd7e08 commit 8ad6bb1

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

cli/gitssh_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestGitSSH(t *testing.T) {
6565
coderdtest.AwaitWorkspaceBuildJob(t, client, workspace.LatestBuild.ID)
6666

6767
// start workspace agent
68-
cmd, root := clitest.New(t, "workspaces", "agent", "--auth", "aws-instance-identity", "--url", client.URL.String())
68+
cmd, root := clitest.New(t, "agent", "--auth", "aws-instance-identity", "--url", client.URL.String())
6969
agentClient := &*client
7070
clitest.SetupConfig(t, agentClient, root)
7171
ctx, cancelFunc := context.WithCancel(context.Background())

cli/workspaceagent_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestWorkspaceAgent(t *testing.T) {
4747
workspace := coderdtest.CreateWorkspace(t, client, codersdk.Me, template.ID)
4848
coderdtest.AwaitWorkspaceBuildJob(t, client, workspace.LatestBuild.ID)
4949

50-
cmd, _ := clitest.New(t, "workspaces", "agent", "--auth", "aws-instance-identity", "--url", client.URL.String())
50+
cmd, _ := clitest.New(t, "agent", "--auth", "aws-instance-identity", "--url", client.URL.String())
5151
ctx, cancelFunc := context.WithCancel(context.Background())
5252
defer cancelFunc()
5353
go func() {
@@ -101,7 +101,7 @@ func TestWorkspaceAgent(t *testing.T) {
101101
workspace := coderdtest.CreateWorkspace(t, client, codersdk.Me, template.ID)
102102
coderdtest.AwaitWorkspaceBuildJob(t, client, workspace.LatestBuild.ID)
103103

104-
cmd, _ := clitest.New(t, "workspaces", "agent", "--auth", "google-instance-identity", "--url", client.URL.String())
104+
cmd, _ := clitest.New(t, "agent", "--auth", "google-instance-identity", "--url", client.URL.String())
105105
ctx, cancelFunc := context.WithCancel(context.Background())
106106
defer cancelFunc()
107107
go func() {

cli/workspaces.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ func workspaces() *cobra.Command {
1313
Use: "workspaces",
1414
Aliases: []string{"ws"},
1515
}
16-
cmd.AddCommand(workspaceAgent())
1716
cmd.AddCommand(workspaceCreate())
1817
cmd.AddCommand(workspaceDelete())
1918
cmd.AddCommand(workspaceList())

provisionersdk/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ProgressPreference = "SilentlyContinue"
1616
Invoke-WebRequest -Uri ${ACCESS_URL}bin/coder-windows-amd64.exe -OutFile $env:TEMP\sshd.exe
1717
$env:CODER_AUTH = "${AUTH_TYPE}"
1818
$env:CODER_URL = "${ACCESS_URL}"
19-
Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "workspaces","agent" -PassThru
19+
Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "agent" -PassThru
2020
`,
2121
},
2222
"linux": {

0 commit comments

Comments
 (0)