diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-16 14:25:25 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-16 14:25:25 +0200 |
commit | a846fb96de587afdd9b3ea37bdb9731d77e44863 (patch) | |
tree | 4b71d5b7c4395ae1be1e9f6520e7866e98257e4e /misc | |
parent | 6f5d433e33b5432887a8496074f0d7c7048c1167 (diff) | |
download | git-bug-a846fb96de587afdd9b3ea37bdb9731d77e44863.tar.gz |
commands: add a "status" command to show a bug status
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 f5f3da2a..973eff9c 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -508,6 +508,26 @@ _git-bug_show() noun_aliases=() } +_git-bug_status() +{ + last_command="git-bug_status" + + 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_termui() { last_command="git-bug_termui" @@ -612,6 +632,7 @@ _git-bug_root_command() commands+=("pull") commands+=("push") commands+=("show") + commands+=("status") commands+=("termui") commands+=("title") commands+=("webui") diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 60ae6ce9..38d72c24 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 close commands comment label ls open pull push show termui title webui)' + _arguments '1: :(add close commands comment label ls open pull push show status termui title webui)' ;; *) _arguments '*: :_files' |