From f70f38c8ee44338e803ba6bb306c13fe1c7f347a Mon Sep 17 00:00:00 2001 From: Sladyn Date: Fri, 8 Feb 2019 23:55:19 +0530 Subject: ls-id.go: Add ls-id [] 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 --- misc/bash_completion/git-bug | 21 +++++++++++++++++++++ misc/zsh_completion/git-bug | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'misc') 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' -- cgit From 3c0c13bbbe934d0fa9476fa5c07bf04ea5a99b94 Mon Sep 17 00:00:00 2001 From: Sladyn Date: Thu, 14 Feb 2019 00:38:55 +0530 Subject: ls-id.go:Add ls-id [] 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 #47 --- misc/zsh_completion/git-bug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index c8cc7c2c..2deae548 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-id ls-label pull push select show status termui title webui)' + _arguments '1: :(add bridge commands comment deselect label ls ls-label pull push select show status termui title webui)' ;; *) _arguments '*: :_files' -- cgit