diff options
author | Mike Goldin <mike.goldin@protonmail.ch> | 2020-11-17 08:09:35 -0500 |
---|---|---|
committer | Mike Goldin <mike.goldin@protonmail.ch> | 2020-11-17 08:32:19 -0500 |
commit | ee3841155e5c58b85408f29a8d44630da5de63f7 (patch) | |
tree | 1b477423060292af296b32971cda1ca0045e0c0d /commands/ls.go | |
parent | b494e06804dca860138da843e0c44912f692a280 (diff) | |
download | git-bug-ee3841155e5c58b85408f29a8d44630da5de63f7.tar.gz git-bug-ee3841155e5c58b85408f29a8d44630da5de63f7.zip |
Update docs for full text search
Diffstat (limited to 'commands/ls.go')
-rw-r--r-- | commands/ls.go | 8 |
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), |