Skip to content

Commit 6a70cfb

Browse files
committed
fixup! Update golden files
1 parent 80972d0 commit 6a70cfb

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

cli/testdata/coder_agent_--help.golden

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
Usage:
22
coder agent [flags]
33

4-
Auth Flags:
5-
--auth string Specify the authentication type to use for the agent.
6-
Consumes $CODER_AGENT_AUTH (default "token")
74
Operability Flags:
85
--log-dir string Specify the location for the agent log files.
96
Consumes $CODER_AGENT_LOG_DIR (default "/tmp")
107
--pprof-address string The address to serve pprof.
118
Consumes $CODER_AGENT_PPROF_ADDRESS (default "127.0.0.1:6060")
129
Other Flags:
10+
--auth string Specify the authentication type to use for the agent.
11+
Consumes $CODER_AGENT_AUTH (default "token")
1312
-h, --help help for agent
1413
--no-reap Do not start a process reaper.
1514

cli/testdata/coder_tokens_create_--help.golden

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ Create a tokens
33
Usage:
44
coder tokens create [flags]
55

6-
Auth Flags:
6+
Flags:
7+
-h, --help help for create
78
--lifetime duration Specify a duration for the lifetime of the token.
89
Consumes $CODER_TOKEN_LIFETIME (default 720h0m0s)
9-
Other Flags:
10-
-h, --help help for create
1110

1211
Global Flags:
1312
--global-config coder Path to the global coder config directory.

cli/usage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var flagCategories = []flagCategory{
7676
matchers: []*regexp.Regexp{
7777
regexp.MustCompile("oauth2"),
7878
regexp.MustCompile("oidc"),
79-
regexp.MustCompile("token"),
79+
regexp.MustCompile(`-\w*token`),
8080
regexp.MustCompile("session"),
8181
},
8282
},

0 commit comments

Comments
 (0)