diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-16 01:04:29 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-16 01:05:09 +0200 |
commit | d9f7269507cfc65a2fec05651bdff00978e0d1ec (patch) | |
tree | 9f0a904fbcf5606ddce6afcf7f5530b5c6b51bfc /misc | |
parent | 6cdc6c087e858e18c5c54e92c60ceb78a37fc3f2 (diff) | |
download | git-bug-d9f7269507cfc65a2fec05651bdff00978e0d1ec.tar.gz |
commands: add a title command to display a bug's title
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash_completion/git-bug | 21 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 2 |
2 files changed, 22 insertions, 1 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index 9fb336b4..36da665c 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -528,6 +528,26 @@ _git-bug_termui() noun_aliases=() } +_git-bug_title() +{ + last_command="git-bug_title" + + 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_webui() { last_command="git-bug_webui" @@ -569,6 +589,7 @@ _git-bug_root_command() commands+=("push") commands+=("show") commands+=("termui") + commands+=("title") commands+=("webui") flags=() diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 4f1b4dd2..31dd5ee0 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 close commands comment label ls open pull push show termui webui)' + _arguments '1: :(add close commands comment label ls open pull push show termui title webui)' ;; *) _arguments '*: :_files' |