Skip to content

Commit 77e60ac

Browse files
committed
commands: add bridge configure completion scripts
1 parent 65d7ce7 commit 77e60ac

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

doc/man/git-bug-bridge-configure.1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ Token configuration can be directly passed with the \-\-token flag or in the ter
4747
\fB\-T\fP, \fB\-\-token\fP=""
4848
The authentication token for the API
4949

50+
.PP
51+
\fB\-\-token\-stdin\fP[=false]
52+
Will read the token from stdin and ignore \-\-token
53+
5054
.PP
5155
\fB\-p\fP, \fB\-\-project\fP=""
5256
The name of the target repository

doc/md/git-bug_bridge_configure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ git bug bridge configure \
6868
-u, --url string The URL of the target repository
6969
-o, --owner string The owner of the target repository
7070
-T, --token string The authentication token for the API
71+
--token-stdin Will read the token from stdin and ignore --token
7172
-p, --project string The name of the target repository
7273
-h, --help help for configure
7374
```

misc/bash_completion/git-bug

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ _git-bug_bridge_configure()
321321
two_word_flags+=("--token")
322322
two_word_flags+=("-T")
323323
local_nonpersistent_flags+=("--token=")
324+
flags+=("--token-stdin")
325+
local_nonpersistent_flags+=("--token-stdin")
324326
flags+=("--project=")
325327
two_word_flags+=("--project")
326328
two_word_flags+=("-p")

misc/powershell_completion/git-bug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock {
6565
[CompletionResult]::new('--owner', 'owner', [CompletionResultType]::ParameterName, 'The owner of the target repository')
6666
[CompletionResult]::new('-T', 'T', [CompletionResultType]::ParameterName, 'The authentication token for the API')
6767
[CompletionResult]::new('--token', 'token', [CompletionResultType]::ParameterName, 'The authentication token for the API')
68+
[CompletionResult]::new('--token-stdin', 'token-stdin', [CompletionResultType]::ParameterName, 'Will read the token from stdin and ignore --token')
6869
[CompletionResult]::new('-p', 'p', [CompletionResultType]::ParameterName, 'The name of the target repository')
6970
[CompletionResult]::new('--project', 'project', [CompletionResultType]::ParameterName, 'The name of the target repository')
7071
break

misc/zsh_completion/git-bug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ function _git-bug_bridge_configure {
146146
'(-u --url)'{-u,--url}'[The URL of the target repository]:' \
147147
'(-o --owner)'{-o,--owner}'[The owner of the target repository]:' \
148148
'(-T --token)'{-T,--token}'[The authentication token for the API]:' \
149+
'--token-stdin[Will read the token from stdin and ignore --token]' \
149150
'(-p --project)'{-p,--project}'[The name of the target repository]:'
150151
}
151152

0 commit comments

Comments
 (0)