Skip to content

Commit 9389dd1

Browse files
committed
update cli usage doc
1 parent 8365484 commit 9389dd1

File tree

6 files changed

+51
-49
lines changed

6 files changed

+51
-49
lines changed

cli/testdata/coder_--help.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ SUBCOMMANDS:
5757
tokens Manage personal access tokens
5858
unfavorite Remove a workspace from your favorites
5959
update Will update and start a given workspace if it is out of
60-
date
60+
date. If the workspace is already running, it will be
61+
stopped first.
6162
users Manage users
6263
version Show coder version
6364
whoami Fetch authenticated user info for Coder deployment

cli/testdata/coder_update_--help.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ coder v0.0.0-devel
33
USAGE:
44
coder update [flags] <workspace>
55

6-
Will update and start a given workspace if it is out of date
6+
Will update and start a given workspace if it is out of date. If the workspace
7+
is already running, it will be stopped first.
78

89
Use --always-prompt to change the parameter values of the workspace.
910

cli/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (r *RootCmd) update() *serpent.Command {
1919
cmd := &serpent.Command{
2020
Annotations: workspaceCommand,
2121
Use: "update <workspace>",
22-
Short: "Will update and start a given workspace if it is out of date",
22+
Short: "Will update and start a given workspace if it is out of date. If the workspace is already running, it will be stopped first.",
2323
Long: "Use --always-prompt to change the parameter values of the workspace.",
2424
Middleware: serpent.Chain(
2525
serpent.RequireNArgs(1),

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@
16941694
},
16951695
{
16961696
"title": "update",
1697-
"description": "Will update and start a given workspace if it is out of date",
1697+
"description": "Will update and start a given workspace if it is out of date. If the workspace is already running, it will be stopped first.",
16981698
"path": "reference/cli/update.md"
16991699
},
17001700
{

docs/reference/cli/index.md

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/cli/update.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)