diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-08-24 13:11:58 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-08-31 23:02:20 +0200 |
commit | 77e60aceeac60e02c253a24faba9603c76228e76 (patch) | |
tree | f6174a34356e2bd82e1aca00a072a053f13895e6 | |
parent | 65d7ce7c05a458beb306984c6fd3629839872845 (diff) | |
download | git-bug-77e60aceeac60e02c253a24faba9603c76228e76.tar.gz git-bug-77e60aceeac60e02c253a24faba9603c76228e76.zip |
commands: add bridge configure completion scripts
-rw-r--r-- | doc/man/git-bug-bridge-configure.1 | 4 | ||||
-rw-r--r-- | doc/md/git-bug_bridge_configure.md | 1 | ||||
-rw-r--r-- | misc/bash_completion/git-bug | 2 | ||||
-rw-r--r-- | misc/powershell_completion/git-bug | 1 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 1 |
5 files changed, 9 insertions, 0 deletions
diff --git a/doc/man/git-bug-bridge-configure.1 b/doc/man/git-bug-bridge-configure.1 index 5e103468..00f57dfb 100644 --- a/doc/man/git-bug-bridge-configure.1 +++ b/doc/man/git-bug-bridge-configure.1 @@ -48,6 +48,10 @@ Token configuration can be directly passed with the \-\-token flag or in the ter The authentication token for the API .PP +\fB\-\-token\-stdin\fP[=false] + Will read the token from stdin and ignore \-\-token + +.PP \fB\-p\fP, \fB\-\-project\fP="" The name of the target repository diff --git a/doc/md/git-bug_bridge_configure.md b/doc/md/git-bug_bridge_configure.md index 0f6a10eb..5181cd43 100644 --- a/doc/md/git-bug_bridge_configure.md +++ b/doc/md/git-bug_bridge_configure.md @@ -68,6 +68,7 @@ git bug bridge configure \ -u, --url string The URL of the target repository -o, --owner string The owner of the target repository -T, --token string The authentication token for the API + --token-stdin Will read the token from stdin and ignore --token -p, --project string The name of the target repository -h, --help help for configure ``` diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index 06032f10..bbeb6335 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -321,6 +321,8 @@ _git-bug_bridge_configure() two_word_flags+=("--token") two_word_flags+=("-T") local_nonpersistent_flags+=("--token=") + flags+=("--token-stdin") + local_nonpersistent_flags+=("--token-stdin") flags+=("--project=") two_word_flags+=("--project") two_word_flags+=("-p") diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug index 3785c0ad..9e0805f3 100644 --- a/misc/powershell_completion/git-bug +++ b/misc/powershell_completion/git-bug @@ -65,6 +65,7 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { [CompletionResult]::new('--owner', 'owner', [CompletionResultType]::ParameterName, 'The owner of the target repository') [CompletionResult]::new('-T', 'T', [CompletionResultType]::ParameterName, 'The authentication token for the API') [CompletionResult]::new('--token', 'token', [CompletionResultType]::ParameterName, 'The authentication token for the API') + [CompletionResult]::new('--token-stdin', 'token-stdin', [CompletionResultType]::ParameterName, 'Will read the token from stdin and ignore --token') [CompletionResult]::new('-p', 'p', [CompletionResultType]::ParameterName, 'The name of the target repository') [CompletionResult]::new('--project', 'project', [CompletionResultType]::ParameterName, 'The name of the target repository') break diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index fe1ca5a5..8eaaf694 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -146,6 +146,7 @@ function _git-bug_bridge_configure { '(-u --url)'{-u,--url}'[The URL of the target repository]:' \ '(-o --owner)'{-o,--owner}'[The owner of the target repository]:' \ '(-T --token)'{-T,--token}'[The authentication token for the API]:' \ + '--token-stdin[Will read the token from stdin and ignore --token]' \ '(-p --project)'{-p,--project}'[The name of the target repository]:' } |