diff options
author | amine <hilalyamine@gmail.com> | 2019-10-24 20:16:51 +0200 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-11-09 13:26:52 +0100 |
commit | baefa687b582632cd9cc21b945bc074c833f5389 (patch) | |
tree | ae2d8a8e918409a0db7d6949177df3660745b09d /misc | |
parent | 3984919a3df95b8ec203bcb82b66c9c2270579c7 (diff) | |
download | git-bug-baefa687b582632cd9cc21b945bc074c833f5389.tar.gz |
tokens: use a hash as token identifier instead of the token it self
Diffstat (limited to 'misc')
-rw-r--r-- | misc/powershell_completion/git-bug | 10 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 6 |
2 files changed, 6 insertions, 10 deletions
diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug index e875b8a2..d92bc04b 100644 --- a/misc/powershell_completion/git-bug +++ b/misc/powershell_completion/git-bug @@ -22,7 +22,6 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { [CompletionResult]::new('commands', 'commands', [CompletionResultType]::ParameterValue, 'Display available commands.') [CompletionResult]::new('comment', 'comment', [CompletionResultType]::ParameterValue, 'Display or add comments to a bug.') [CompletionResult]::new('deselect', 'deselect', [CompletionResultType]::ParameterValue, 'Clear the implicitly selected bug.') - [CompletionResult]::new('export', 'export', [CompletionResultType]::ParameterValue, '') [CompletionResult]::new('label', 'label', [CompletionResultType]::ParameterValue, 'Display, add or remove labels to/from a bug.') [CompletionResult]::new('ls', 'ls', [CompletionResultType]::ParameterValue, 'List bugs.') [CompletionResult]::new('ls-id', 'ls-id', [CompletionResultType]::ParameterValue, 'List bug identifiers.') @@ -53,7 +52,7 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { [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.') - [CompletionResult]::new('token', 'token', [CompletionResultType]::ParameterValue, 'Configure and use bridge tokens.') + [CompletionResult]::new('token', 'token', [CompletionResultType]::ParameterValue, 'List all stored tokens.') break } 'git-bug;bridge;configure' { @@ -90,8 +89,8 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { [CompletionResult]::new('--local', 'local', [CompletionResultType]::ParameterName, '') [CompletionResult]::new('-g', 'g', [CompletionResultType]::ParameterName, '') [CompletionResult]::new('--global', 'global', [CompletionResultType]::ParameterName, '') - [CompletionResult]::new('add', 'add', [CompletionResultType]::ParameterValue, 'Configure and use bridge tokens.') - [CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Configure and use bridge tokens.') + [CompletionResult]::new('add', 'add', [CompletionResultType]::ParameterValue, 'Create and store a new token') + [CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Remove token by Id.') break } 'git-bug;bridge;token;add' { @@ -127,9 +126,6 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { 'git-bug;deselect' { break } - 'git-bug;export' { - break - } 'git-bug;label' { [CompletionResult]::new('add', 'add', [CompletionResultType]::ParameterValue, 'Add a label to a bug.') [CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Remove a label from a bug.') diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 1f4679ad..d9da4ac2 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -118,7 +118,7 @@ function _git-bug_bridge { "pull:Pull updates." "push:Push updates." "rm:Delete a configured bridge." - "token:Configure and use bridge tokens." + "token:List all stored tokens." ) _describe "command" commands ;; @@ -181,8 +181,8 @@ function _git-bug_bridge_token { case $state in cmnds) commands=( - "add:Configure and use bridge tokens." - "rm:Configure and use bridge tokens." + "add:Create and store a new token" + "rm:Remove token by Id." ) _describe "command" commands ;; |