refactor: urfave v3

This commit is contained in:
2024-07-09 13:57:54 +02:00
parent 375e17a4a0
commit 1f8662cd95
336 changed files with 7332 additions and 25145 deletions
cli
go.modgo.sum
pkg/autocomplete
scripts/autocomplete
vendor
github.com
Azure
ProtonMail
beorn7
perks
quantile
cenkalti
containers
cpuguy83
davecgh
docker
emirpasic
gods
containers
lists
arraylist
utils
felixge
ghodss
go-git
gogo
google
hashicorp
go-cleanhttp
kballard
go-shellquote
kevinburke
ssh_config
lucasb-eyer
go-colorful
mattn
mgutz
ansi
miekg
pkcs11
opencontainers
pkg
pmezard
go-difflib
difflib
russross
sergi
go-diff
diffmatchpatch
sirupsen
spf13
theupdateframework
urfave
xeipuuv
xrash
go.opentelemetry.io
proto
otlp
metrics
trace
golang.org
x
sys
text
internal
language
language
google.golang.org
protobuf
internal
gopkg.in
gotest.tools
v3
internal
difflib
modules.txt

@ -7,6 +7,7 @@
//
// Note that the API for the token package may change to accommodate new
// features or implementation changes in gcfg.
//
package token
import "strconv"
@ -57,6 +58,7 @@ var tokens = [...]string{
// sequence (e.g., for the token ASSIGN, the string is "="). For all other
// tokens the string corresponds to the token constant name (e.g. for the
// token IDENT, the string is "IDENT").
//
func (tok Token) String() string {
s := ""
if 0 <= tok && tok < Token(len(tokens)) {
@ -72,8 +74,10 @@ func (tok Token) String() string {
// IsLiteral returns true for tokens corresponding to identifiers
// and basic type literals; it returns false otherwise.
//
func (tok Token) IsLiteral() bool { return literal_beg < tok && tok < literal_end }
// IsOperator returns true for tokens corresponding to operators and
// delimiters; it returns false otherwise.
//
func (tok Token) IsOperator() bool { return operator_beg < tok && tok < operator_end }