Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 7ef9bdf

Browse files
committed
Swap ws and workspaces
1 parent 4f141bc commit 7ef9bdf

18 files changed

+92
-102
lines changed

ci/integration/integration_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ func TestCoderCLI(t *testing.T) {
5353

5454
headlessLogin(ctx, t, c)
5555

56-
c.Run(ctx, "coder ws").Assert(t,
56+
c.Run(ctx, "coder workspaces").Assert(t,
5757
tcli.Success(),
5858
)
5959

60-
c.Run(ctx, "coder ws ls").Assert(t,
60+
c.Run(ctx, "coder workspaces ls").Assert(t,
6161
tcli.Success(),
6262
)
6363

64-
c.Run(ctx, "coder ws ls -o json").Assert(t,
64+
c.Run(ctx, "coder workspaces ls -o json").Assert(t,
6565
tcli.Success(),
6666
)
6767

@@ -93,7 +93,7 @@ func TestCoderCLI(t *testing.T) {
9393
tcli.Success(),
9494
)
9595

96-
c.Run(ctx, "coder ws ls").Assert(t,
96+
c.Run(ctx, "coder workspaces ls").Assert(t,
9797
tcli.Error(),
9898
)
9999

ci/integration/ssh_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestSSH(t *testing.T) {
1515

1616
// TODO remove this once we can create a workspace if there aren't any
1717
var workspaces []coder.Workspace
18-
c.Run(ctx, "coder ws ls --output json").Assert(t,
18+
c.Run(ctx, "coder workspaces ls --output json").Assert(t,
1919
tcli.Success(),
2020
tcli.StdoutJSONUnmarshal(&workspaces),
2121
)

ci/integration/statictokens_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ func TestStaticAuth(t *testing.T) {
3535

3636
// make requests with token environment variable authentication
3737
cmd := exec.CommandContext(ctx, "sh", "-c",
38-
fmt.Sprintf("export CODER_URL=%s && export CODER_TOKEN=$(cat) && coder ws ls", os.Getenv("CODER_URL")),
38+
fmt.Sprintf("export CODER_URL=%s && export CODER_TOKEN=$(cat) && coder workspaces ls", os.Getenv("CODER_URL")),
3939
)
4040
cmd.Stdin = strings.NewReader(string(result.Stdout))
4141
c.RunCmd(cmd).Assert(t,
4242
tcli.Success(),
4343
)
4444

4545
// should error when the environment variables aren't set
46-
c.Run(ctx, "coder ws ls").Assert(t,
46+
c.Run(ctx, "coder workspaces ls").Assert(t,
4747
tcli.Error(),
4848
)
4949
})

docs/coder.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ coder provides a CLI for working with an existing Coder installation
2121
* [coder tokens](coder_tokens.md) - manage Coder API tokens for the active user
2222
* [coder urls](coder_urls.md) - Interact with workspace DevURLs
2323
* [coder users](coder_users.md) - Interact with Coder user accounts
24-
* [coder ws](coder_ws.md) - Interact with Coder workspaces
25-
24+
* [coder workspaces](coder_workspaces.md) - Interact with Coder workspaces

docs/coder_ws.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## coder ws
1+
## coder workspaces
22

33
Interact with Coder workspaces
44

@@ -9,7 +9,7 @@ Perform operations on the Coder workspaces owned by the active user.
99
### Options
1010

1111
```
12-
-h, --help help for ws
12+
-h, --help help for workspaces
1313
```
1414

1515
### Options inherited from parent commands
@@ -21,12 +21,11 @@ Perform operations on the Coder workspaces owned by the active user.
2121
### SEE ALSO
2222

2323
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
24-
* [coder ws create](coder_ws_create.md) - create a new workspace.
25-
* [coder ws create-from-config](coder_ws_create-from-config.md) - create a new workspace from a template
26-
* [coder ws edit](coder_ws_edit.md) - edit an existing workspace and initiate a rebuild.
27-
* [coder ws ls](coder_ws_ls.md) - list all workspaces owned by the active user
28-
* [coder ws rebuild](coder_ws_rebuild.md) - rebuild a Coder workspace
29-
* [coder ws rm](coder_ws_rm.md) - remove Coder workspaces by name
30-
* [coder ws stop](coder_ws_stop.md) - stop Coder workspaces by name
31-
* [coder ws watch-build](coder_ws_watch-build.md) - trail the build log of a Coder workspace
32-
24+
* [coder workspaces create](coder_workspaces_create.md) - create a new workspace.
25+
* [coder workspaces create-from-config](coder_workspaces_create-from-config.md) - create a new workspace from a template
26+
* [coder workspaces edit](coder_workspaces_edit.md) - edit an existing workspace and initiate a rebuild.
27+
* [coder workspaces ls](coder_workspaces_ls.md) - list all workspaces owned by the active user
28+
* [coder workspaces rebuild](coder_workspaces_rebuild.md) - rebuild a Coder workspace
29+
* [coder workspaces rm](coder_workspaces_rm.md) - remove Coder workspaces by name
30+
* [coder workspaces stop](coder_workspaces_stop.md) - stop Coder workspaces by name
31+
* [coder workspaces watch-build](coder_workspaces_watch-build.md) - trail the build log of a Coder workspace

docs/coder_ws_create-from-config.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## coder ws create-from-config
1+
## coder workspaces create-from-config
22

33
create a new workspace from a template
44

@@ -7,15 +7,15 @@ create a new workspace from a template
77
Create a new Coder workspace using a Workspaces As Code template.
88

99
```
10-
coder ws create-from-config [flags]
10+
coder workspaces create-from-config [flags]
1111
```
1212

1313
### Examples
1414

1515
```
1616
# create a new workspace from git repository
17-
coder ws create-from-config --name="dev-workspace" --repo-url https://github.com/cdr/m --ref my-branch
18-
coder ws create-from-config --name="dev-workspace" -f coder.yaml
17+
coder workspaces create-from-config --name="dev-workspace" --repo-url https://github.com/cdr/m --ref my-branch
18+
coder workspaces create-from-config --name="dev-workspace" -f coder.yaml
1919
```
2020

2121
### Options
@@ -39,5 +39,4 @@ coder ws create-from-config --name="dev-workspace" -f coder.yaml
3939

4040
### SEE ALSO
4141

42-
* [coder ws](coder_ws.md) - Interact with Coder workspaces
43-
42+
* [coder workspaces](coder_workspaces.md) - Interact with Coder workspaces

docs/coder_ws_create.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## coder ws create
1+
## coder workspaces create
22

33
create a new workspace.
44

@@ -7,15 +7,15 @@ create a new workspace.
77
Create a new Coder workspace.
88

99
```
10-
coder ws create [workspace_name] [flags]
10+
coder workspaces create [workspace_name] [flags]
1111
```
1212

1313
### Examples
1414

1515
```
1616
# create a new workspace using default resource amounts
17-
coder ws create my-new-workspace --image ubuntu
18-
coder ws create my-new-powerful-workspace --cpu 12 --disk 100 --memory 16 --image ubuntu
17+
coder workspaces create my-new-workspace --image ubuntu
18+
coder workspaces create my-new-powerful-workspace --cpu 12 --disk 100 --memory 16 --image ubuntu
1919
```
2020

2121
### Options
@@ -43,5 +43,4 @@ coder ws create my-new-powerful-workspace --cpu 12 --disk 100 --memory 16 --imag
4343

4444
### SEE ALSO
4545

46-
* [coder ws](coder_ws.md) - Interact with Coder workspaces
47-
46+
* [coder workspaces](coder_workspaces.md) - Interact with Coder workspaces

docs/coder_ws_edit.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## coder ws edit
1+
## coder workspaces edit
22

33
edit an existing workspace and initiate a rebuild.
44

@@ -7,15 +7,15 @@ edit an existing workspace and initiate a rebuild.
77
Edit an existing workspace and initate a rebuild.
88

99
```
10-
coder ws edit [flags]
10+
coder workspaces edit [flags]
1111
```
1212

1313
### Examples
1414

1515
```
16-
coder ws edit back-end-workspace --cpu 4
16+
coder workspaces edit back-end-workspace --cpu 4
1717
18-
coder ws edit back-end-workspace --disk 20
18+
coder workspaces edit back-end-workspace --disk 20
1919
```
2020

2121
### Options
@@ -42,5 +42,4 @@ coder ws edit back-end-workspace --disk 20
4242

4343
### SEE ALSO
4444

45-
* [coder ws](coder_ws.md) - Interact with Coder workspaces
46-
45+
* [coder workspaces](coder_workspaces.md) - Interact with Coder workspaces

docs/coder_ws_ls.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## coder ws ls
1+
## coder workspaces ls
22

33
list all workspaces owned by the active user
44

@@ -7,7 +7,7 @@ list all workspaces owned by the active user
77
List all Coder workspaces owned by the active user.
88

99
```
10-
coder ws ls [flags]
10+
coder workspaces ls [flags]
1111
```
1212

1313
### Options
@@ -27,5 +27,4 @@ coder ws ls [flags]
2727

2828
### SEE ALSO
2929

30-
* [coder ws](coder_ws.md) - Interact with Coder workspaces
31-
30+
* [coder workspaces](coder_workspaces.md) - Interact with Coder workspaces

docs/coder_ws_rebuild.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
## coder ws rebuild
1+
## coder workspaces rebuild
22

33
rebuild a Coder workspace
44

55
```
6-
coder ws rebuild [workspace_name] [flags]
6+
coder workspaces rebuild [workspace_name] [flags]
77
```
88

99
### Examples
1010

1111
```
12-
coder ws rebuild front-end-workspace --follow
13-
coder ws rebuild backend-workspace --force
12+
coder workspaces rebuild front-end-workspace --follow
13+
coder workspaces rebuild backend-workspace --force
1414
```
1515

1616
### Options
@@ -30,5 +30,4 @@ coder ws rebuild backend-workspace --force
3030

3131
### SEE ALSO
3232

33-
* [coder ws](coder_ws.md) - Interact with Coder workspaces
34-
33+
* [coder workspaces](coder_workspaces.md) - Interact with Coder workspaces

0 commit comments

Comments
 (0)