fix(notification): word --all confirmations and flag values clearly

notification mark-read --all asked "Marked as read all … ?"; each command now asks in its own words, such as "Pin all unread notifications in your inbox?". The status and type filters list their values in help, the api parameter flags read like gh's, and tea auth login --help aligns its method list.

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-11 23:50:47 +02:00
1 parent 9e74ec54ad
commit 390e8e04f6
4 files changed
+22 -16

No files matched your search

+3 -3
View File
@@ -277,9 +277,9 @@ func (a *application) apiCommand() *cobra.Command {
}}
cmd.Flags().StringVarP(&method, "method", "X", "GET", "HTTP `method`")
cmd.Flags().StringVar(&input, "input", "", "Read the request body from a `file`, or stdin with -")
cmd.Flags().StringArrayVarP(&headerValues, "header", "H", nil, "Add a request header: `\"Name: value\"`")
cmd.Flags().StringArrayVarP(&raw, "raw-field", "f", nil, "Add a string field: `name=value`")
cmd.Flags().StringArrayVarP(&typed, "field", "F", nil, "Add a typed field: `name=value`; @FILE or @- reads a file or stdin")
cmd.Flags().StringArrayVarP(&headerValues, "header", "H", nil, "Add an HTTP request header in `name:value` format")
cmd.Flags().StringArrayVarP(&raw, "raw-field", "f", nil, "Add a string parameter in `key=value` format")
cmd.Flags().StringArrayVarP(&typed, "field", "F", nil, "Add a typed parameter in `key=value` format; @FILE or @- reads a file or stdin")
cmd.Flags().StringVar(&output, "output-file", "", "Write the complete response to a new `file`")
cmd.Flags().BoolVarP(&include, "include", "i", false, "Print the response status and headers to stderr")
cmd.Flags().BoolVar(&verbose, "verbose", false, "Print the request and the response status and headers to stderr")