From df5a38e8873046d14846c85a021bf37b3ff68675 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 14 May 2026 18:01:50 +0000 Subject: [PATCH] chore(deps): update module github.com/decentral1se/cobra to v1.10.2 --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/spf13/cobra/command.go | 16 +++++----------- vendor/modules.txt | 4 ++-- 4 files changed, 10 insertions(+), 16 deletions(-) diff --git a/go.mod b/go.mod index 7ad4ba44..e45915f5 100644 --- a/go.mod +++ b/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 diff --git a/go.sum b/go.sum index 118add0f..8ccc3118 100644 --- a/go.sum +++ b/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= diff --git a/vendor/github.com/spf13/cobra/command.go b/vendor/github.com/spf13/cobra/command.go index 75b0923f..c05fed45 100644 --- a/vendor/github.com/spf13/cobra/command.go +++ b/vendor/github.com/spf13/cobra/command.go @@ -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"}) } } diff --git a/vendor/modules.txt b/vendor/modules.txt index 22536447..e873cc09 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -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