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

Commit 977e375

Browse files
committed
fixup! Allow multiple env args to env stop command
1 parent 1b3216b commit 977e375

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

internal/cmd/envs.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ func stopEnvCommand(user *string) *cobra.Command {
7575
Example: `coder envs stop front-end-env
7676
coder envs stop front-end-env backend-env
7777
78-
# to stop all of your environments:
78+
# stop all of your environments
7979
coder envs ls -o json | jq -c '.[].name' | xargs coder envs stop
80-
`,
80+
81+
# stop all environments for a given user
82+
coder envs --user charlie@coder.com ls -o json \
83+
| jq -c '.[].name' \
84+
| xargs coder envs --user charlie@coder.com stop`,
8185
Args: cobra.MinimumNArgs(1),
8286
RunE: func(cmd *cobra.Command, args []string) error {
8387
client, err := newClient()

0 commit comments

Comments
 (0)