Skip to content

Commit f75f822

Browse files
chore: add description
1 parent 1a2d1ea commit f75f822

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

cli/notifications.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ func (r *RootCmd) notifications() *serpent.Command {
2323
Description: "Resume Coder notifications",
2424
Command: "coder notifications resume",
2525
},
26+
Example{
27+
Description: "Send a test notification. Administrators can use this to verify the notification target settings.",
28+
Command: "coder notifications test",
29+
},
2630
),
2731
Aliases: []string{"notification"},
2832
Handler: func(inv *serpent.Invocation) error {
@@ -89,7 +93,7 @@ func (r *RootCmd) testNotifications() *serpent.Command {
8993
client := new(codersdk.Client)
9094
cmd := &serpent.Command{
9195
Use: "test",
92-
Short: "Test notifications",
96+
Short: "Send a test notification",
9397
Middleware: serpent.Chain(
9498
serpent.RequireNArgs(0),
9599
r.InitClient(client),

cli/testdata/coder_notifications_--help.golden

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ USAGE:
1919
- Resume Coder notifications:
2020

2121
$ coder notifications resume
22+
23+
- Send a test notification. Administrators can use this to verify the
24+
notification
25+
target settings.:
26+
27+
$ coder notifications test
2228

2329
SUBCOMMANDS:
2430
pause Pause notifications
2531
resume Resume notifications
26-
test Test notifications
32+
test Send a test notification
2733

2834
———
2935
Run `coder --help` for a list of global options.

cli/testdata/coder_notifications_test_--help.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ coder v0.0.0-devel
33
USAGE:
44
coder notifications test
55

6-
Test notifications
6+
Send a test notification
77

88
———
99
Run `coder --help` for a list of global options.

0 commit comments

Comments
 (0)