Merge pull request #848 from MichaelMure/docs-847-add-ls-compact

docs(847): add compact to docs and completion for ls command's format flag
This commit is contained in:
Steve Moyer 2022-08-16 08:30:54 -04:00 committed by GitHub
commit 94e3bc85d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -91,9 +91,9 @@ git bug ls status:open --by creation "foo bar" baz
"Select the sorting direction. Valid values are [asc,desc]")
cmd.RegisterFlagCompletionFunc("direction", completeFrom([]string{"asc", "desc"}))
flags.StringVarP(&options.outputFormat, "format", "f", "default",
"Select the output formatting style. Valid values are [default,plain,json,org-mode]")
"Select the output formatting style. Valid values are [default,plain,compact,json,org-mode]")
cmd.RegisterFlagCompletionFunc("format",
completeFrom([]string{"default", "plain", "json", "org-mode"}))
completeFrom([]string{"default", "plain", "compact", "json", "org-mode"}))
return cmd
}

View File

@ -62,7 +62,7 @@ You can pass an additional query to filter and order the list. This query can be
.PP
\fB-f\fP, \fB--format\fP="default"
Select the output formatting style. Valid values are [default,plain,json,org-mode]
Select the output formatting style. Valid values are [default,plain,compact,json,org-mode]
.PP
\fB-h\fP, \fB--help\fP[=false]

View File

@ -42,7 +42,7 @@ git bug ls status:open --by creation "foo bar" baz
-n, --no strings Filter by absence of something. Valid values are [label]
-b, --by string Sort the results by a characteristic. Valid values are [id,creation,edit] (default "creation")
-d, --direction string Select the sorting direction. Valid values are [asc,desc] (default "asc")
-f, --format string Select the output formatting style. Valid values are [default,plain,json,org-mode] (default "default")
-f, --format string Select the output formatting style. Valid values are [default,plain,compact,json,org-mode] (default "default")
-h, --help help for ls
```