forked from toolshed/abra
chore(deps): update module github.com/decentral1se/cobra to v1.10.2
This commit is contained in:
2
go.mod
2
go.mod
@ -160,4 +160,4 @@ require (
|
||||
|
||||
replace github.com/docker/cli v28.4.0+incompatible => git.coopcloud.tech/toolshed/docker-cli v28.5.3-0.20260202112816-30df2d0b3a00+incompatible
|
||||
|
||||
replace github.com/spf13/cobra => github.com/decentral1se/cobra v1.10.2-i18n
|
||||
replace github.com/spf13/cobra => github.com/decentral1se/cobra v1.10.2
|
||||
|
||||
4
go.sum
4
go.sum
@ -308,8 +308,8 @@ github.com/d2g/hardwareaddr v0.0.0-20190221164911-e7d9fbe030e4/go.mod h1:bMl4RjI
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/decentral1se/cobra v1.10.2-i18n h1:XR+6AHHfnf4k5NM9f09oLMrEVwz3rkQIAIcqgL8R08g=
|
||||
github.com/decentral1se/cobra v1.10.2-i18n/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
|
||||
github.com/decentral1se/cobra v1.10.2 h1:MZ8Ifi/jRels9sZrpSccDbUlK++3b2HlBODfv0Bh6x0=
|
||||
github.com/decentral1se/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
|
||||
github.com/decentral1se/passgen v1.0.1 h1:j2AxK/kHKxDHWZZfkJj8Wgae9+O+DYEqR5sjKthIYKA=
|
||||
github.com/decentral1se/passgen v1.0.1/go.mod h1:530V+lNoPhKtkrX2fIVsIfLhkl47CuiOM7HRgi7C+SU=
|
||||
github.com/denisenkom/go-mssqldb v0.0.0-20191128021309-1d7a30a10f73/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
|
||||
|
||||
16
vendor/github.com/spf13/cobra/command.go
generated
vendored
16
vendor/github.com/spf13/cobra/command.go
generated
vendored
@ -925,15 +925,10 @@ func (c *Command) execute(a []string) (err error) {
|
||||
// Also say we need help if the command isn't runnable.
|
||||
helpVal, err := c.Flags().GetBool(helpFlagName)
|
||||
if err != nil {
|
||||
// NOTE(d1): temporarily hardcoding "ayuda" as a replacement for "help"
|
||||
// source of the pain: https://github.com/spf13/cobra/issues/2359
|
||||
helpVal, err = c.Flags().GetBool("ayuda")
|
||||
if err != nil {
|
||||
// should be impossible to get here as we always declare a help
|
||||
// flag in InitDefaultHelpFlag()
|
||||
c.Println("\"help\" flag declared as non-bool. Please correct your code")
|
||||
return err
|
||||
}
|
||||
// should be impossible to get here as we always declare a help
|
||||
// flag in InitDefaultHelpFlag()
|
||||
c.Println("\"help\" flag declared as non-bool. Please correct your code")
|
||||
return err
|
||||
}
|
||||
|
||||
if helpVal {
|
||||
@ -1231,8 +1226,7 @@ func (c *Command) InitDefaultHelpFlag() {
|
||||
} else {
|
||||
usage += name
|
||||
}
|
||||
// NOTE(d1): do not assume "help" exists in the context of translation
|
||||
// c.Flags().BoolP(helpFlagName, "h", false, usage)
|
||||
c.Flags().BoolP(helpFlagName, "h", false, usage)
|
||||
_ = c.Flags().SetAnnotation(helpFlagName, FlagSetByCobraAnnotation, []string{"true"})
|
||||
}
|
||||
}
|
||||
|
||||
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -541,7 +541,7 @@ github.com/sirupsen/logrus
|
||||
# github.com/skeema/knownhosts v1.3.2
|
||||
## explicit; go 1.24.0
|
||||
github.com/skeema/knownhosts
|
||||
# github.com/spf13/cobra v1.10.1 => github.com/decentral1se/cobra v1.10.2-i18n
|
||||
# github.com/spf13/cobra v1.10.1 => github.com/decentral1se/cobra v1.10.2
|
||||
## explicit; go 1.15
|
||||
github.com/spf13/cobra
|
||||
github.com/spf13/cobra/doc
|
||||
@ -857,4 +857,4 @@ gotest.tools/v3/internal/cleanup
|
||||
gotest.tools/v3/internal/difflib
|
||||
gotest.tools/v3/internal/format
|
||||
gotest.tools/v3/internal/source
|
||||
# github.com/spf13/cobra => github.com/decentral1se/cobra v1.10.2-i18n
|
||||
# github.com/spf13/cobra => github.com/decentral1se/cobra v1.10.2
|
||||
|
||||
Reference in New Issue
Block a user