aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-17 14:33:34 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-17 14:33:34 +0200
commit2965b70f4f462b3532bb380c5206e2d940f68c65 (patch)
treef612b5406f2173b981f54c1dfb12c45e1203dea1 /misc
parentcc086ebae99dfeb936d9397f4e3eedf5d37a97b1 (diff)
downloadgit-bug-2965b70f4f462b3532bb380c5206e2d940f68c65.tar.gz
commands: add a "label add" command to add new label to a bug
Diffstat (limited to 'misc')
-rw-r--r--misc/bash_completion/git-bug21
-rw-r--r--misc/zsh_completion/git-bug3
2 files changed, 24 insertions, 0 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index 3e1ba26f..7283ad2a 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -347,6 +347,26 @@ _git-bug_comment()
noun_aliases=()
}
+_git-bug_label_add()
+{
+ last_command="git-bug_label_add"
+
+ 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_label()
{
last_command="git-bug_label"
@@ -354,6 +374,7 @@ _git-bug_label()
command_aliases=()
commands=()
+ commands+=("add")
flags=()
two_word_flags=()
diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug
index bb22344a..b564942f 100644
--- a/misc/zsh_completion/git-bug
+++ b/misc/zsh_completion/git-bug
@@ -20,6 +20,9 @@ case $state in
comment)
_arguments '2: :(add)'
;;
+ label)
+ _arguments '2: :(add)'
+ ;;
status)
_arguments '2: :(close open)'
;;