aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorSladyn <gunnerforlife00@gmail.com>2019-02-08 23:55:19 +0530
committerSladyn <gunnerforlife00@gmail.com>2019-02-14 00:32:40 +0530
commitf70f38c8ee44338e803ba6bb306c13fe1c7f347a (patch)
treea36d96b2b01071d3d850f3a04af5f601ba6d0c77 /misc
parentbb0066344a12d6ba58ab4dfc420b4fe5308e0a71 (diff)
downloadgit-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')
-rw-r--r--misc/bash_completion/git-bug21
-rw-r--r--misc/zsh_completion/git-bug2
2 files changed, 22 insertions, 1 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")
diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug
index 2deae548..c8cc7c2c 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 deselect label ls ls-label pull push select show status termui title webui)'
+ _arguments '1: :(add bridge commands comment deselect label ls ls-id ls-label pull push select show status termui title webui)'
;;
*)
_arguments '*: :_files'