diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-18 13:17:39 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-18 13:17:39 +0200 |
commit | 5f9fd2a2d95bd23e5d6972ec822bf1fea3077804 (patch) | |
tree | 9c6b0a9ff684179916207689c6b5c808efb67eb7 /misc | |
parent | 0d5998eb67f9bbf146e15a127a2d6a89aa14eab9 (diff) | |
download | git-bug-5f9fd2a2d95bd23e5d6972ec822bf1fea3077804.tar.gz |
commands: add a "select" command to select a bug for future implicit use
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash_completion/git-bug | 21 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 2 |
2 files changed, 22 insertions, 1 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index d0613dc7..9d8482c8 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -487,6 +487,26 @@ _git-bug_push() noun_aliases=() } +_git-bug_select() +{ + last_command="git-bug_select" + + 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_show() { last_command="git-bug_show" @@ -670,6 +690,7 @@ _git-bug_root_command() commands+=("ls") commands+=("pull") commands+=("push") + commands+=("select") commands+=("show") commands+=("status") commands+=("termui") diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 35506b76..4ad6663a 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 commands comment label ls pull push show status termui title webui)' + _arguments '1: :(add commands comment label ls pull push select show status termui title webui)' ;; *) _arguments '*: :_files' |