aboutsummaryrefslogtreecommitdiffstats
path: root/misc/bash_completion
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-15 20:31:40 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-15 20:31:40 +0200
commit6cdc6c087e858e18c5c54e92c60ceb78a37fc3f2 (patch)
tree13f378972d6dd152be5adfcf2df2c2b6aee95db8 /misc/bash_completion
parentbfb5e96aab9e78f05942151060cc92fdaa32bedd (diff)
downloadgit-bug-6cdc6c087e858e18c5c54e92c60ceb78a37fc3f2.tar.gz
commands: add `git bug comment add` to add a comment
Diffstat (limited to 'misc/bash_completion')
-rw-r--r--misc/bash_completion/git-bug81
1 files changed, 51 insertions, 30 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index 94c2db96..9fb336b4 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -248,6 +248,35 @@ _git_bug() {
__start_git-bug "$@"
}
+_git-bug_add()
+{
+ last_command="git-bug_add"
+
+ command_aliases=()
+
+ commands=()
+
+ flags=()
+ two_word_flags=()
+ local_nonpersistent_flags=()
+ flags_with_completion=()
+ flags_completion=()
+
+ flags+=("--title=")
+ two_word_flags+=("-t")
+ local_nonpersistent_flags+=("--title=")
+ flags+=("--message=")
+ two_word_flags+=("-m")
+ local_nonpersistent_flags+=("--message=")
+ flags+=("--file=")
+ two_word_flags+=("-F")
+ local_nonpersistent_flags+=("--file=")
+
+ must_have_one_flag=()
+ must_have_one_noun=()
+ noun_aliases=()
+}
+
_git-bug_close()
{
last_command="git-bug_close"
@@ -291,6 +320,26 @@ _git-bug_commands()
noun_aliases=()
}
+_git-bug_comment_add()
+{
+ last_command="git-bug_comment_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_comment()
{
last_command="git-bug_comment"
@@ -298,6 +347,7 @@ _git-bug_comment()
command_aliases=()
commands=()
+ commands+=("add")
flags=()
two_word_flags=()
@@ -378,35 +428,6 @@ _git-bug_ls()
noun_aliases=()
}
-_git-bug_new()
-{
- last_command="git-bug_new"
-
- command_aliases=()
-
- commands=()
-
- flags=()
- two_word_flags=()
- local_nonpersistent_flags=()
- flags_with_completion=()
- flags_completion=()
-
- flags+=("--title=")
- two_word_flags+=("-t")
- local_nonpersistent_flags+=("--title=")
- flags+=("--message=")
- two_word_flags+=("-m")
- local_nonpersistent_flags+=("--message=")
- flags+=("--file=")
- two_word_flags+=("-F")
- local_nonpersistent_flags+=("--file=")
-
- must_have_one_flag=()
- must_have_one_noun=()
- noun_aliases=()
-}
-
_git-bug_open()
{
last_command="git-bug_open"
@@ -537,12 +558,12 @@ _git-bug_root_command()
command_aliases=()
commands=()
+ commands+=("add")
commands+=("close")
commands+=("commands")
commands+=("comment")
commands+=("label")
commands+=("ls")
- commands+=("new")
commands+=("open")
commands+=("pull")
commands+=("push")