aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-10 18:16:16 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-10 18:18:00 +0200
commit9bb980e9de1ec3764069ae70baf0c2458e7c35a4 (patch)
treeae6daa547ebcd37fcb93419da0e54d2187f0c667 /misc
parentfd21de5632fda2bbc030d34c28e9dfc1403d2497 (diff)
downloadgit-bug-9bb980e9de1ec3764069ae70baf0c2458e7c35a4.tar.gz
ls: support expressing a query with flags as well
Diffstat (limited to 'misc')
-rw-r--r--misc/bash_completion/git-bug30
1 files changed, 24 insertions, 6 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index bc831998..94c2db96 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -354,6 +354,24 @@ _git-bug_ls()
flags_with_completion=()
flags_completion=()
+ flags+=("--status=")
+ two_word_flags+=("-s")
+ local_nonpersistent_flags+=("--status=")
+ flags+=("--author=")
+ two_word_flags+=("-a")
+ local_nonpersistent_flags+=("--author=")
+ flags+=("--label=")
+ two_word_flags+=("-l")
+ local_nonpersistent_flags+=("--label=")
+ flags+=("--no=")
+ two_word_flags+=("-n")
+ local_nonpersistent_flags+=("--no=")
+ flags+=("--by=")
+ two_word_flags+=("-b")
+ local_nonpersistent_flags+=("--by=")
+ flags+=("--direction=")
+ two_word_flags+=("-d")
+ local_nonpersistent_flags+=("--direction=")
must_have_one_flag=()
must_have_one_noun=()
@@ -374,15 +392,15 @@ _git-bug_new()
flags_with_completion=()
flags_completion=()
- flags+=("--file=")
- two_word_flags+=("-F")
- local_nonpersistent_flags+=("--file=")
- flags+=("--message=")
- two_word_flags+=("-m")
- local_nonpersistent_flags+=("--message=")
flags+=("--title=")
two_word_flags+=("-t")
local_nonpersistent_flags+=("--title=")
+ flags+=("--message=")
+ two_word_flags+=("-m")
+ local_nonpersistent_flags+=("--message=")
+ flags+=("--file=")
+ two_word_flags+=("-F")
+ local_nonpersistent_flags+=("--file=")
must_have_one_flag=()
must_have_one_noun=()