aboutsummaryrefslogtreecommitdiffstats
path: root/query/query.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-08-20 12:00:34 +0200
committerMike Goldin <mike.goldin@protonmail.ch>2020-11-17 08:09:51 -0500
commitb285c57dc62caac2c1f09e74eeece406b0e7cc00 (patch)
treeaa2f15c8e3a250c8bd8d8f4a7b11a5c9819453a8 /query/query.go
parent902997f53771babb2f9ea1bb6288c2ec295c4c9e (diff)
downloadgit-bug-b285c57dc62caac2c1f09e74eeece406b0e7cc00.tar.gz
query: expand the tokenizer/parser to parse arbitrary search terms
Diffstat (limited to 'query/query.go')
-rw-r--r--query/query.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/query/query.go b/query/query.go
index a499ad38..816d6414 100644
--- a/query/query.go
+++ b/query/query.go
@@ -7,6 +7,7 @@ import "github.com/MichaelMure/git-bug/bug"
// manually. This query doesn't do anything by itself and need to be interpreted
// for the specific domain of application.
type Query struct {
+ Search
Filters
OrderBy
OrderDirection
@@ -20,6 +21,8 @@ func NewQuery() *Query {
}
}
+type Search []string
+
// Filters is a collection of Filter that implement a complex filter
type Filters struct {
Status []bug.Status