diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-21 14:02:05 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-21 14:02:05 +0200 |
commit | 6e4475941309b1b8aed7415b948ba6d26d80dfad (patch) | |
tree | 727a761970b6a7cbc3558918e253616843a1422f /misc | |
parent | cfce3a9914c4a7762399119fabc63c77f567d7cf (diff) | |
download | git-bug-6e4475941309b1b8aed7415b948ba6d26d80dfad.tar.gz |
commands: add a "ls-labels" command that output valid labels
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 9d8482c8..c78391dd 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -447,6 +447,26 @@ _git-bug_ls() noun_aliases=() } +_git-bug_ls-label() +{ + last_command="git-bug_ls-label" + + 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_pull() { last_command="git-bug_pull" @@ -688,6 +708,7 @@ _git-bug_root_command() commands+=("comment") commands+=("label") commands+=("ls") + commands+=("ls-label") commands+=("pull") commands+=("push") commands+=("select") diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 4ad6663a..077fa181 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 select show status termui title webui)' + _arguments '1: :(add commands comment label ls ls-label pull push select show status termui title webui)' ;; *) _arguments '*: :_files' |