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

Lines changed: 6 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy