diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-26 16:49:00 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-26 16:49:00 +0200 |
commit | 04ddeef90f8dfb541e1b87ace1cb817679a488df (patch) | |
tree | 1a5929b845b796866c8637ae776b9d8dffc0ecb5 /misc | |
parent | 18f5c1632f51b7f7172441651b13ac267b421df2 (diff) | |
download | git-bug-04ddeef90f8dfb541e1b87ace1cb817679a488df.tar.gz |
commands: add a "deselect" command to deselect a previously selected bug
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash_completion/git-bug | 21 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 8 |
2 files changed, 25 insertions, 4 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index 496c900b..69f73d2c 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -430,6 +430,26 @@ _git-bug_comment() noun_aliases=() } +_git-bug_deselect() +{ + last_command="git-bug_deselect" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + + must_have_one_flag=() + must_have_one_noun=() + noun_aliases=() +} + _git-bug_label_add() { last_command="git-bug_label_add" @@ -790,6 +810,7 @@ _git-bug_root_command() commands+=("bridge") commands+=("commands") commands+=("comment") + commands+=("deselect") commands+=("label") commands+=("ls") commands+=("ls-label") diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 8d2d9208..2deae548 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -8,7 +8,7 @@ case $state in level1) case $words[1] in git-bug) - _arguments '1: :(add bridge commands comment label ls ls-label pull push select show status termui title webui)' + _arguments '1: :(add bridge commands comment deselect label ls ls-label pull push select show status termui title webui)' ;; *) _arguments '*: :_files' @@ -17,6 +17,9 @@ case $state in ;; level2) case $words[2] in + bridge) + _arguments '2: :(configure pull rm)' + ;; comment) _arguments '2: :(add)' ;; @@ -29,9 +32,6 @@ case $state in title) _arguments '2: :(edit)' ;; - bridge) - _arguments '2: :(configure pull rm)' - ;; *) _arguments '*: :_files' ;; |