diff options
author | Michael Muré <batolettre@gmail.com> | 2019-11-10 18:30:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-10 18:30:46 +0100 |
commit | 802b61e254c40042028d5f08bbed0968e78da265 (patch) | |
tree | 1672ea2925533bee62947f6e0a7027b1bff1cb7e /misc/powershell_completion | |
parent | 350ab761d7b07df9bd49123130fe9807ea9a3d7e (diff) | |
parent | e0b15ee7644c20533156850e0be5a07597967450 (diff) | |
download | git-bug-802b61e254c40042028d5f08bbed0968e78da265.tar.gz |
Merge pull request #219 from MichaelMure/global-config
Global config, global bridge token
Diffstat (limited to 'misc/powershell_completion')
-rw-r--r-- | misc/powershell_completion/git-bug | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug index 34037531..5f043932 100644 --- a/misc/powershell_completion/git-bug +++ b/misc/powershell_completion/git-bug @@ -48,12 +48,30 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { break } 'git-bug;bridge' { + [CompletionResult]::new('auth', 'auth', [CompletionResultType]::ParameterValue, 'List all known bridge authentication credentials.') [CompletionResult]::new('configure', 'configure', [CompletionResultType]::ParameterValue, 'Configure a new bridge.') [CompletionResult]::new('pull', 'pull', [CompletionResultType]::ParameterValue, 'Pull updates.') [CompletionResult]::new('push', 'push', [CompletionResultType]::ParameterValue, 'Push updates.') [CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Delete a configured bridge.') break } + 'git-bug;bridge;auth' { + [CompletionResult]::new('add-token', 'add-token', [CompletionResultType]::ParameterValue, 'Store a new token') + [CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Remove a credential.') + [CompletionResult]::new('show', 'show', [CompletionResultType]::ParameterValue, 'Display an authentication credential.') + break + } + 'git-bug;bridge;auth;add-token' { + [CompletionResult]::new('-t', 't', [CompletionResultType]::ParameterName, 'The target of the bridge. Valid values are [github,gitlab,launchpad-preview]') + [CompletionResult]::new('--target', 'target', [CompletionResultType]::ParameterName, 'The target of the bridge. Valid values are [github,gitlab,launchpad-preview]') + break + } + 'git-bug;bridge;auth;rm' { + break + } + 'git-bug;bridge;auth;show' { + break + } 'git-bug;bridge;configure' { [CompletionResult]::new('-n', 'n', [CompletionResultType]::ParameterName, 'A distinctive name to identify the bridge') [CompletionResult]::new('--name', 'name', [CompletionResultType]::ParameterName, 'A distinctive name to identify the bridge') |