diff options
author | Michael Muré <michael.mure@consensys.net> | 2019-02-20 21:56:33 +0100 |
---|---|---|
committer | Michael Muré <michael.mure@consensys.net> | 2019-02-20 21:56:33 +0100 |
commit | 59ea2e018e05e7a4033d572f819f4a696ab74397 (patch) | |
tree | 01a427bfc2f67208e1801e8e06a934d91eb9a777 /misc/bash_completion | |
parent | 09692456c7a5491b37a22d72e652de66ecc8d4e7 (diff) | |
download | git-bug-59ea2e018e05e7a4033d572f819f4a696ab74397.tar.gz |
add a "version" command with various outputs, including the git hash and tag
Diffstat (limited to 'misc/bash_completion')
-rw-r--r-- | misc/bash_completion/git-bug | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index d6c28214..4c22c1e0 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -779,6 +779,35 @@ _git-bug_title() noun_aliases=() } +_git-bug_version() +{ + last_command="git-bug_version" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--number") + flags+=("-n") + local_nonpersistent_flags+=("--number") + flags+=("--commit") + flags+=("-c") + local_nonpersistent_flags+=("--commit") + flags+=("--all") + flags+=("-a") + local_nonpersistent_flags+=("--all") + + must_have_one_flag=() + must_have_one_noun=() + noun_aliases=() +} + _git-bug_webui() { last_command="git-bug_webui" @@ -824,6 +853,7 @@ _git-bug_root_command() commands+=("status") commands+=("termui") commands+=("title") + commands+=("version") commands+=("webui") flags=() |