diff options
author | Sladyn <gunnerforlife00@gmail.com> | 2019-02-08 23:55:19 +0530 |
---|---|---|
committer | Sladyn <gunnerforlife00@gmail.com> | 2019-02-14 00:32:40 +0530 |
commit | f70f38c8ee44338e803ba6bb306c13fe1c7f347a (patch) | |
tree | a36d96b2b01071d3d850f3a04af5f601ba6d0c77 /misc/bash_completion | |
parent | bb0066344a12d6ba58ab4dfc420b4fe5308e0a71 (diff) | |
download | git-bug-f70f38c8ee44338e803ba6bb306c13fe1c7f347a.tar.gz |
ls-id.go: Add ls-id [<prefix>] command
This file adds the ls-id command which returns
the bug id matching the prefix the user enters.
If no prefix entered it lists all the BugId's
Closes https://github.com/MichaelMure/git-bug/issues/47
Diffstat (limited to 'misc/bash_completion')
-rw-r--r-- | misc/bash_completion/git-bug | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index d6c28214..3870e3a0 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -550,6 +550,26 @@ _git-bug_ls() noun_aliases=() } +_git-bug_ls-id() +{ + last_command="git-bug_ls-id" + + 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_ls-label() { last_command="git-bug_ls-label" @@ -816,6 +836,7 @@ _git-bug_root_command() commands+=("deselect") commands+=("label") commands+=("ls") + commands+=("ls-id") commands+=("ls-label") commands+=("pull") commands+=("push") |