diff --git a/bridge/core/token.go b/bridge/core/token.go index 09294e495f9838566d8f5bc9a21fa82c17d4529c..9f06e73c7c1f3aae7ab0c5db2f667e6424f4224f 100644 --- a/bridge/core/token.go +++ b/bridge/core/token.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/MichaelMure/git-bug/entity" "github.com/araddon/dateparse" + "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/repository" ) diff --git a/doc/man/git-bug-bridge-token-add.1 b/doc/man/git-bug-bridge-token-add.1 index 1eb5bb205892260ad239e9bf5752e4664af199b9..7ce07b1c1b0ebb110ff68b15117d705ebab0859c 100644 --- a/doc/man/git-bug-bridge-token-add.1 +++ b/doc/man/git-bug-bridge-token-add.1 @@ -19,18 +19,12 @@ Create and store a new token .SH OPTIONS -.PP -\fB\-g\fP, \fB\-\-global\fP[=false] - .PP \fB\-v\fP, \fB\-\-value\fP="" .PP \fB\-t\fP, \fB\-\-target\fP="" -.PP -\fB\-s\fP, \fB\-\-scopes\fP=[] - .PP \fB\-h\fP, \fB\-\-help\fP[=false] help for add diff --git a/doc/md/git-bug_bridge_token_add.md b/doc/md/git-bug_bridge_token_add.md index 6ef705d08e4b2392da0b85acfa221fba23cd0399..f372a06cc9f80d06d208084d6cd1d7d3334aa24d 100644 --- a/doc/md/git-bug_bridge_token_add.md +++ b/doc/md/git-bug_bridge_token_add.md @@ -13,11 +13,9 @@ git-bug bridge token add [flags] ### Options ``` - -g, --global - -v, --value string - -t, --target string - -s, --scopes stringArray - -h, --help help for add + -v, --value string + -t, --target string + -h, --help help for add ``` ### SEE ALSO diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index 9c71994950cbd5c12a8fee3da4ec7b611de87670..e6a196262e7793373dc0cabbf07de39b92258178 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -414,9 +414,6 @@ _git-bug_bridge_token_add() flags_with_completion=() flags_completion=() - flags+=("--global") - flags+=("-g") - local_nonpersistent_flags+=("--global") flags+=("--value=") two_word_flags+=("--value") two_word_flags+=("-v") @@ -425,10 +422,6 @@ _git-bug_bridge_token_add() two_word_flags+=("--target") two_word_flags+=("-t") local_nonpersistent_flags+=("--target=") - flags+=("--scopes=") - two_word_flags+=("--scopes") - two_word_flags+=("-s") - local_nonpersistent_flags+=("--scopes=") must_have_one_flag=() must_have_one_noun=() diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug index d92bc04bdfee093afa30bac40149ed7bc3545f9e..99265bbbe470f74ad50fc3dcfd0f480c56090e96 100644 --- a/misc/powershell_completion/git-bug +++ b/misc/powershell_completion/git-bug @@ -94,14 +94,10 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { break } 'git-bug;bridge;token;add' { - [CompletionResult]::new('-g', 'g', [CompletionResultType]::ParameterName, '') - [CompletionResult]::new('--global', 'global', [CompletionResultType]::ParameterName, '') [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('-s', 's', [CompletionResultType]::ParameterName, '') - [CompletionResult]::new('--scopes', 'scopes', [CompletionResultType]::ParameterName, '') break } 'git-bug;bridge;token;rm' { diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index d9da4ac246f5993ceb4a2f18642e8cf846f24e6e..e8c48cb6743ae9d1251167960ee2e2b5452cc32e 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -200,10 +200,8 @@ function _git-bug_bridge_token { function _git-bug_bridge_token_add { _arguments \ - '(-g --global)'{-g,--global}'[]' \ '(-v --value)'{-v,--value}'[]:' \ - '(-t --target)'{-t,--target}'[]:' \ - '(*-s *--scopes)'{\*-s,\*--scopes}'[]:' + '(-t --target)'{-t,--target}'[]:' } function _git-bug_bridge_token_rm {