Skip to content

Commit 77db66d

Browse files
committed
fixup! Update golden files
1 parent 53d17ff commit 77db66d

7 files changed

+15
-1
lines changed

cli/testdata/coder_--help.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Auth Flags:
5151
--token string Specify an authentication token. For security reasons setting
5252
CODER_SESSION_TOKEN is preferred.
5353
Consumes $CODER_SESSION_TOKEN
54+
5455
Other Flags:
5556
--global-config coder Path to the global coder config directory.
5657
Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2")

cli/testdata/coder_agent_--help.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ Usage:
44
Auth Flags:
55
--auth string Specify the authentication type to use for the agent.
66
Consumes $CODER_AGENT_AUTH (default "token")
7+
78
Operability Flags:
89
--log-dir string Specify the location for the agent log files.
910
Consumes $CODER_AGENT_LOG_DIR (default "/tmp")
1011
--pprof-address string The address to serve pprof.
1112
Consumes $CODER_AGENT_PPROF_ADDRESS (default "127.0.0.1:6060")
13+
1214
Other Flags:
1315
-h, --help help for agent
1416
--no-reap Do not start a process reaper.

cli/testdata/coder_scaletest_create-workspaces_--help.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Operability Flags:
2424
server is configured with the exact same tracing
2525
configuration as the client.
2626
Consumes $CODER_LOADTEST_TRACE_PROPAGATE
27+
2728
Other Flags:
2829
--cleanup-concurrency int Number of concurrent cleanup jobs to run. 0 means
2930
unlimited.

cli/testdata/coder_server_--help.golden

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Networking Flags:
146146
use for workspace applications in
147147
the form "*.example.com".
148148
Consumes $CODER_WILDCARD_ACCESS_URL
149+
149150
Auth Flags:
150151
--disable-password-auth coder server create-admin Disable password authentication.
151152
This is recommended for security
@@ -244,6 +245,7 @@ Auth Flags:
244245
--disable-session-expiry-refresh.
245246
Consumes $CODER_MAX_SESSION_EXPIRY
246247
(default 24h0m0s)
248+
247249
Operability Flags:
248250
--log-human string Output human-readable logs to a
249251
given file.
@@ -287,6 +289,7 @@ Operability Flags:
287289
flag was supplied, debug-level logs
288290
will be included.
289291
Consumes $CODER_TRACE_CAPTURE_LOGS
292+
290293
Provisioning Flags:
291294
--provisioner-daemon-poll-interval duration Time to wait before polling for a
292295
new job.
@@ -306,6 +309,7 @@ Provisioning Flags:
306309
tasks that are stuck.
307310
Consumes
308311
$CODER_PROVISIONER_FORCE_CANCEL_INTERVAL (default 10m0s)
312+
309313
Other Flags:
310314
--cache-dir string The directory to cache temporary
311315
files. If unspecified and

cli/testdata/coder_templates_create_--help.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Usage:
55

66
Provisioning Flags:
77
--provisioner-tag stringArray Specify a set of tags to target provisioner daemons.
8+
89
Other Flags:
910
--default-ttl duration Specify a default TTL for workspaces created from this
1011
template. (default 24h0m0s)

cli/testdata/coder_templates_push_--help.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Usage:
55

66
Provisioning Flags:
77
--provisioner-tag stringArray Specify a set of tags to target provisioner daemons.
8+
89
Other Flags:
910
--always-prompt Always prompt all parameters. Does not pull parameter
1011
values from active template version

cli/usage.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ func categorizeFlags(usageOutput string) string {
164164
} else {
165165
_, _ = fmt.Fprintf(&out, "%s\n", usageHeader(cat.name+" Flags:"))
166166
}
167-
_, _ = buf.WriteTo(&out)
167+
body := buf.String()
168+
_, _ = out.WriteString(body)
169+
if !strings.HasSuffix(body, "\n\n") {
170+
_, _ = out.WriteString("\n")
171+
}
168172
}
169173
}
170174

0 commit comments

Comments
 (0)