diff options
author | amine <hilalyamine@gmail.com> | 2019-11-08 14:55:27 +0100 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-11-09 14:55:27 +0100 |
commit | 45653bd31d9ec91123ee42803cd5c46b43d18528 (patch) | |
tree | ee4cd8df30b59766fb3384d3a0e8d47e372823bc | |
parent | bbbf3c6c7f245ea2ddc9d31639e7ebac50eeac2d (diff) | |
download | git-bug-45653bd31d9ec91123ee42803cd5c46b43d18528.tar.gz |
token: regenerate documentation and fix imports
-rw-r--r-- | bridge/core/token.go | 2 | ||||
-rw-r--r-- | doc/man/git-bug-bridge-token-add.1 | 6 | ||||
-rw-r--r-- | doc/md/git-bug_bridge_token_add.md | 8 | ||||
-rw-r--r-- | misc/bash_completion/git-bug | 7 | ||||
-rw-r--r-- | misc/powershell_completion/git-bug | 4 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 4 |
6 files changed, 5 insertions, 26 deletions
diff --git a/bridge/core/token.go b/bridge/core/token.go index 09294e49..9f06e73c 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 1eb5bb20..7ce07b1c 100644 --- a/doc/man/git-bug-bridge-token-add.1 +++ b/doc/man/git-bug-bridge-token-add.1 @@ -20,18 +20,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 6ef705d0..f372a06c 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 9c719949..e6a19626 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 d92bc04b..99265bbb 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 d9da4ac2..e8c48cb6 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 { |