aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMike Goldin <mike.goldin@protonmail.ch>2020-11-17 08:09:35 -0500
committerMike Goldin <mike.goldin@protonmail.ch>2020-11-17 08:32:19 -0500
commitee3841155e5c58b85408f29a8d44630da5de63f7 (patch)
tree1b477423060292af296b32971cda1ca0045e0c0d /commands
parentb494e06804dca860138da843e0c44912f692a280 (diff)
downloadgit-bug-ee3841155e5c58b85408f29a8d44630da5de63f7.tar.gz
Update docs for full text search
Diffstat (limited to 'commands')
-rw-r--r--commands/ls.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/commands/ls.go b/commands/ls.go
index 769d60ba..f6d654b1 100644
--- a/commands/ls.go
+++ b/commands/ls.go
@@ -38,12 +38,18 @@ func newLsCommand() *cobra.Command {
Short: "List bugs.",
Long: `Display a summary of each bugs.
-You can pass an additional query to filter and order the list. This query can be expressed either with a simple query language or with flags.`,
+You can pass an additional query to filter and order the list. This query can be expressed either with a simple query language, flags, a natural language full text search, or a combination of the aforementioned.`,
Example: `List open bugs sorted by last edition with a query:
git bug ls status:open sort:edit-desc
List closed bugs sorted by creation with flags:
git bug ls --status closed --by creation
+
+Do a full text search of all bugs:
+git bug ls "foo bar" baz
+
+Use queries, flags, and full text search:
+git bug ls status:open --by creation "foo bar" baz
`,
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),