token: regenerate documentation and fix imports

amine created

Change summary

bridge/core/token.go               | 2 +-
doc/man/git-bug-bridge-token-add.1 | 6 ------
doc/md/git-bug_bridge_token_add.md | 8 +++-----
misc/bash_completion/git-bug       | 7 -------
misc/powershell_completion/git-bug | 4 ----
misc/zsh_completion/git-bug        | 4 +---
6 files changed, 5 insertions(+), 26 deletions(-)

Detailed changes

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"
 )
 

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

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

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=()

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' {

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 {