Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit977e375

Browse files
committed
fixup! Allow multiple env args to env stop command
1 parent1b3216b commit977e375

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-
#tostop 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)

[8]ページ先頭

©2009-2025 Movatter.jp