aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/bash_completion/git-bug10
-rw-r--r--misc/powershell_completion/git-bug14
-rw-r--r--misc/zsh_completion/git-bug9
3 files changed, 7 insertions, 26 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index e6a19626..28924d1c 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -414,10 +414,6 @@ _git-bug_bridge_token_add()
flags_with_completion=()
flags_completion=()
- flags+=("--value=")
- two_word_flags+=("--value")
- two_word_flags+=("-v")
- local_nonpersistent_flags+=("--value=")
flags+=("--target=")
two_word_flags+=("--target")
two_word_flags+=("-t")
@@ -464,12 +460,6 @@ _git-bug_bridge_token()
flags_with_completion=()
flags_completion=()
- flags+=("--local")
- flags+=("-l")
- local_nonpersistent_flags+=("--local")
- flags+=("--global")
- flags+=("-g")
- local_nonpersistent_flags+=("--global")
must_have_one_flag=()
must_have_one_noun=()
diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug
index 99265bbb..094fa254 100644
--- a/misc/powershell_completion/git-bug
+++ b/misc/powershell_completion/git-bug
@@ -52,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, 'List all stored tokens.')
+ [CompletionResult]::new('token', 'token', [CompletionResultType]::ParameterValue, 'List all known tokens.')
break
}
'git-bug;bridge;configure' {
@@ -85,19 +85,13 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock {
break
}
'git-bug;bridge;token' {
- [CompletionResult]::new('-l', 'l', [CompletionResultType]::ParameterName, '')
- [CompletionResult]::new('--local', 'local', [CompletionResultType]::ParameterName, '')
- [CompletionResult]::new('-g', 'g', [CompletionResultType]::ParameterName, '')
- [CompletionResult]::new('--global', 'global', [CompletionResultType]::ParameterName, '')
- [CompletionResult]::new('add', 'add', [CompletionResultType]::ParameterValue, 'Create and store a new token')
+ [CompletionResult]::new('add', 'add', [CompletionResultType]::ParameterValue, 'Store a new token')
[CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Remove token by Id.')
break
}
'git-bug;bridge;token;add' {
- [CompletionResult]::new('-v', 'v', [CompletionResultType]::ParameterName, '')
- [CompletionResult]::new('--value', 'value', [CompletionResultType]::ParameterName, '')
- [CompletionResult]::new('-t', 't', [CompletionResultType]::ParameterName, '')
- [CompletionResult]::new('--target', 'target', [CompletionResultType]::ParameterName, '')
+ [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;token;rm' {
diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug
index e8c48cb6..7f5f6231 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:List all stored tokens."
+ "token:List all known tokens."
)
_describe "command" commands
;;
@@ -173,15 +173,13 @@ function _git-bug_bridge_token {
local -a commands
_arguments -C \
- '(-l --local)'{-l,--local}'[]' \
- '(-g --global)'{-g,--global}'[]' \
"1: :->cmnds" \
"*::arg:->args"
case $state in
cmnds)
commands=(
- "add:Create and store a new token"
+ "add:Store a new token"
"rm:Remove token by Id."
)
_describe "command" commands
@@ -200,8 +198,7 @@ function _git-bug_bridge_token {
function _git-bug_bridge_token_add {
_arguments \
- '(-v --value)'{-v,--value}'[]:' \
- '(-t --target)'{-t,--target}'[]:'
+ '(-t --target)'{-t,--target}'[The target of the bridge. Valid values are [github,gitlab,launchpad-preview]]:'
}
function _git-bug_bridge_token_rm {