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

Commit 7158502

Browse files
committed
fixup! Add "coder envs stop [environment_name]" command
1 parent 67e7278 commit 7158502

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

docs/coder_envs.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ Perform operations on the Coder environments owned by the active user.
1717

1818
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
1919
* [coder envs ls](coder_envs_ls.md) - list all environments owned by the active user
20+
* [coder envs stop](coder_envs_stop.md) - stop a Coder Environment by name

docs/coder_envs_stop.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## coder envs stop
2+
3+
stop a Coder Environment by name
4+
5+
### Synopsis
6+
7+
Stop a Coder Environment by name
8+
9+
```
10+
coder envs stop [environment_name] [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help help for stop
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
--user string Specify the user whose resources to target (default "me")
23+
```
24+
25+
### SEE ALSO
26+
27+
* [coder envs](coder_envs.md) - Interact with Coder environments

internal/cmd/envs.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ func makeEnvsCommand() *cobra.Command {
6969
func stopEnvCommand(user *string) *cobra.Command {
7070
return &cobra.Command{
7171
Use: "stop [environment_name]",
72-
Short: "stop Coder environments by name",
73-
Long: "Stop a Coder environment by name.",
74-
Args: cobra.ExactArgs(1),
72+
Short: "stop a Coder Environment by name",
73+
Long: "Stop a Coder Environment by name",
74+
Args: cobra.ExactArgs(1),
7575
RunE: func(cmd *cobra.Command, args []string) error {
7676
client, err := newClient()
7777
if err != nil {

0 commit comments

Comments
 (0)