diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash_completion/git-bug | 21 | ||||
-rw-r--r-- | misc/powershell_completion/git-bug | 6 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 10 |
3 files changed, 35 insertions, 2 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index 28924d1c..e8126b8f 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -444,6 +444,26 @@ _git-bug_bridge_token_rm() noun_aliases=() } +_git-bug_bridge_token_show() +{ + last_command="git-bug_bridge_token_show" + + 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_bridge_token() { last_command="git-bug_bridge_token" @@ -453,6 +473,7 @@ _git-bug_bridge_token() commands=() commands+=("add") commands+=("rm") + commands+=("show") flags=() two_word_flags=() diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug index 094fa254..6a7bf0c3 100644 --- a/misc/powershell_completion/git-bug +++ b/misc/powershell_completion/git-bug @@ -86,7 +86,8 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { } 'git-bug;bridge;token' { [CompletionResult]::new('add', 'add', [CompletionResultType]::ParameterValue, 'Store a new token') - [CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Remove token by Id.') + [CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Remove a token.') + [CompletionResult]::new('show', 'show', [CompletionResultType]::ParameterValue, 'Display a token.') break } 'git-bug;bridge;token;add' { @@ -97,6 +98,9 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { 'git-bug;bridge;token;rm' { break } + 'git-bug;bridge;token;show' { + break + } 'git-bug;commands' { [CompletionResult]::new('-p', 'p', [CompletionResultType]::ParameterName, 'Output the command description as well as Markdown compatible comment') [CompletionResult]::new('--pretty', 'pretty', [CompletionResultType]::ParameterName, 'Output the command description as well as Markdown compatible comment') diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 7f5f6231..f0ff7edf 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -180,7 +180,8 @@ function _git-bug_bridge_token { cmnds) commands=( "add:Store a new token" - "rm:Remove token by Id." + "rm:Remove a token." + "show:Display a token." ) _describe "command" commands ;; @@ -193,6 +194,9 @@ function _git-bug_bridge_token { rm) _git-bug_bridge_token_rm ;; + show) + _git-bug_bridge_token_show + ;; esac } @@ -205,6 +209,10 @@ function _git-bug_bridge_token_rm { _arguments } +function _git-bug_bridge_token_show { + _arguments +} + function _git-bug_commands { _arguments \ '(-p --pretty)'{-p,--pretty}'[Output the command description as well as Markdown compatible comment]' |