aboutsummaryrefslogtreecommitdiffstats
path: root/misc/bash_completion
diff options
context:
space:
mode:
authorvince <vincetiu8@gmail.com>2020-07-09 14:59:47 +0800
committerMichael Muré <batolettre@gmail.com>2021-02-14 12:17:48 +0100
commitd96284da646cc1d3e3d7d3b2f7a1ab0e8e7a4d88 (patch)
tree032869cd4c3ff959a42b7489795cc2cd8afc6423 /misc/bash_completion
parent2788c5fc87507974d3237d4edc233fda3f784b35 (diff)
downloadgit-bug-d96284da646cc1d3e3d7d3b2f7a1ab0e8e7a4d88.tar.gz
Change the comment ID to use both bug and comment ID references.
Add comment edit command This commit adds the comment edit command, which provides a CLI tool that allows a user to edit a comment.
Diffstat (limited to 'misc/bash_completion')
-rw-r--r--misc/bash_completion/git-bug33
1 files changed, 33 insertions, 0 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index 912e87b4..b3103e88 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -722,6 +722,38 @@ _git-bug_comment_add()
noun_aliases=()
}
+_git-bug_comment_edit()
+{
+ last_command="git-bug_comment_edit"
+
+ command_aliases=()
+
+ commands=()
+
+ flags=()
+ two_word_flags=()
+ local_nonpersistent_flags=()
+ flags_with_completion=()
+ flags_completion=()
+
+ flags+=("--file=")
+ two_word_flags+=("--file")
+ two_word_flags+=("-F")
+ local_nonpersistent_flags+=("--file")
+ local_nonpersistent_flags+=("--file=")
+ local_nonpersistent_flags+=("-F")
+ flags+=("--message=")
+ two_word_flags+=("--message")
+ two_word_flags+=("-m")
+ local_nonpersistent_flags+=("--message")
+ local_nonpersistent_flags+=("--message=")
+ local_nonpersistent_flags+=("-m")
+
+ must_have_one_flag=()
+ must_have_one_noun=()
+ noun_aliases=()
+}
+
_git-bug_comment()
{
last_command="git-bug_comment"
@@ -730,6 +762,7 @@ _git-bug_comment()
commands=()
commands+=("add")
+ commands+=("edit")
flags=()
two_word_flags=()