Skip to content

Commit ec583d2

Browse files
authored
fix(deps): Update module github.com/spf13/cobra to v1.6.1 (#329)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/spf13/cobra](https://togithub.com/spf13/cobra) | require | minor | `v1.5.0` -> `v1.6.1` | --- ### Release Notes <details> <summary>spf13/cobra</summary> ### [`v1.6.1`](https://togithub.com/spf13/cobra/releases/tag/v1.6.1) [Compare Source](https://togithub.com/spf13/cobra/compare/v1.6.0...v1.6.1) ##### Bug fixes 🐛 - Fixes a panic when `AddGroup` isn't called before `AddCommand(my-sub-command)` is executed. This can happen within more complex cobra file structures that have many different `init`s to be executed. Now, the check for groups has been moved to `ExecuteC` and provides more flexibility when working with grouped commands - [@&#8203;marckhouzam](https://togithub.com/marckhouzam) (and shout out to [@&#8203;aawsome](https://togithub.com/aawsome), [@&#8203;andig](https://togithub.com/andig) and [@&#8203;KINGSABRI](https://togithub.com/KINGSABRI) for a deep investigation into this! 👏🏼) ### [`v1.6.0`](https://togithub.com/spf13/cobra/releases/tag/v1.6.0) [Compare Source](https://togithub.com/spf13/cobra/compare/v1.5.0...v1.6.0) ##### Summer 2022 Release Some exciting changes make their way to Cobra! Command completions continue to get better and better (including adding `--help` and `--version` automatic flags to the completions list). Grouping is now possible in your help output as well! And you can now use the `OnFinalize` method to cleanup things when all "work" is done. Checkout the full changelog below: *** ##### Features 🌠 - Add groups for commands in help: [@&#8203;aawsome](https://togithub.com/aawsome) [@&#8203;marckhouzam](https://togithub.com/marckhouzam) [#&#8203;1003](https://togithub.com/spf13/cobra/issues/1003) - Support for case-insensitive command names: [@&#8203;YuviGold](https://togithub.com/YuviGold) [#&#8203;1802](https://togithub.com/spf13/cobra/issues/1802) - Expose `ValidateRequiredFlags` and `ValidateFlagGroups`: [@&#8203;skeetwu](https://togithub.com/skeetwu) [#&#8203;1760](https://togithub.com/spf13/cobra/issues/1760) - Add `--version` flag to help output: [@&#8203;fnickels](https://togithub.com/fnickels) [#&#8203;1707](https://togithub.com/spf13/cobra/issues/1707) - Add `--help` and `--version` flag in completions: [@&#8203;marckhouzam](https://togithub.com/marckhouzam) [#&#8203;1813](https://togithub.com/spf13/cobra/issues/1813) - Add `OnFinalize` method: [@&#8203;yann-soubeyrand](https://togithub.com/yann-soubeyrand) [#&#8203;1788](https://togithub.com/spf13/cobra/issues/1788) - Allow user to add completion for powershell alias: [@&#8203;marckhouzam](https://togithub.com/marckhouzam) [#&#8203;1621](https://togithub.com/spf13/cobra/issues/1621) - Make `InitDefaultcompletionCmd` public: [@&#8203;gssbzn](https://togithub.com/gssbzn) [#&#8203;1467](https://togithub.com/spf13/cobra/issues/1467) ##### Deprecation 👎🏼 - `ExactValidArgs` is deprecated (but not being removed entirely). This is abit nuanced, so checkout [#&#8203;1643](https://togithub.com/spf13/cobra/issues/1643) for further information and the [updated `user_guide.md`](https://togithub.com/spf13/cobra/blob/main/user_guide.md) on how this may affect you (and how you can take advantage of the *correct* behavior in the validators): [@&#8203;umarcor](https://togithub.com/umarcor) [#&#8203;1643](https://togithub.com/spf13/cobra/issues/1643) ##### Bug fixes 🐛 - Fix (bash-v2) `activeHelp` length check syntax: [@&#8203;scop](https://togithub.com/scop) [#&#8203;1762](https://togithub.com/spf13/cobra/issues/1762) - Fix correct command path in `see_also` for yaml documentation: [@&#8203;zregvart](https://togithub.com/zregvart) [#&#8203;1771](https://togithub.com/spf13/cobra/issues/1771) - Fix showing flags that shadow parent persistent flag in child help messaging: [@&#8203;brianpursley](https://togithub.com/brianpursley) [#&#8203;1776](https://togithub.com/spf13/cobra/issues/1776) ##### Dependencies 🗳️ - Upgrade to use `gopkg.in/yaml.v3`: [@&#8203;tklauser](https://togithub.com/tklauser) [#&#8203;1766](https://togithub.com/spf13/cobra/issues/1766) ##### Testing 🤔 - Test on Golang 1.19: [@&#8203;umarcor](https://togithub.com/umarcor) & [@&#8203;jpmcb](https://togithub.com/jpmcb) [#&#8203;1782](https://togithub.com/spf13/cobra/issues/1782) - Renamed powershell completion tests: [@&#8203;marckhouzam](https://togithub.com/marckhouzam) [#&#8203;1803](https://togithub.com/spf13/cobra/issues/1803) - Use `action/setup-go` cache: [@&#8203;umarcor](https://togithub.com/umarcor) [#&#8203;1783](https://togithub.com/spf13/cobra/issues/1783) - Add `workflow_dispatch` to CI actions: [@&#8203;umarcor](https://togithub.com/umarcor) [#&#8203;1387](https://togithub.com/spf13/cobra/issues/1387) - Add minimum GitHub token permissions for workflows: [@&#8203;varunsh-coder](https://togithub.com/varunsh-coder) [#&#8203;1792](https://togithub.com/spf13/cobra/issues/1792) ##### Docs ✏️ - Fixup spelling for GitHub CLI: [@&#8203;eltociear](https://togithub.com/eltociear) [#&#8203;1744](https://togithub.com/spf13/cobra/issues/1744) - Clarify `SetContext` documentation: [@&#8203;katexochen](https://togithub.com/katexochen) [#&#8203;1748](https://togithub.com/spf13/cobra/issues/1748) - Instruct user to `go install` for binary: [@&#8203;marckhouzam](https://togithub.com/marckhouzam) [#&#8203;1726](https://togithub.com/spf13/cobra/issues/1726) - User guide cleanup: [@&#8203;marckhouzam](https://togithub.com/marckhouzam) [#&#8203;1656](https://togithub.com/spf13/cobra/issues/1656) - Document option to hide the default completion command: [@&#8203;marckhouzam](https://togithub.com/marckhouzam) [#&#8203;1779](https://togithub.com/spf13/cobra/issues/1779) ##### Misc 💭 - Add KubeVirt, CloudQuery, Cilium, Okteto, Zitadel, Allero to projects using cobra: [@&#8203;maiqueb](https://togithub.com/maiqueb) [#&#8203;1741](https://togithub.com/spf13/cobra/issues/1741), [@&#8203;yevgenypats](https://togithub.com/yevgenypats) [#&#8203;1742](https://togithub.com/spf13/cobra/issues/1742), [@&#8203;tklauser](https://togithub.com/tklauser) [#&#8203;1745](https://togithub.com/spf13/cobra/issues/1745), [@&#8203;jLopezbarb](https://togithub.com/jLopezbarb) [#&#8203;1759](https://togithub.com/spf13/cobra/issues/1759), [@&#8203;fforootd](https://togithub.com/fforootd) [#&#8203;1772](https://togithub.com/spf13/cobra/issues/1772), [@&#8203;dimabru](https://togithub.com/dimabru) [#&#8203;1819](https://togithub.com/spf13/cobra/issues/1819) - Use correct stale action `exempt` yaml keys: [@&#8203;jpmcb](https://togithub.com/jpmcb) [#&#8203;1800](https://togithub.com/spf13/cobra/issues/1800) - Add missing license headers: [@&#8203;umarcor](https://togithub.com/umarcor) [#&#8203;1809](https://togithub.com/spf13/cobra/issues/1809) *Note:* Per [#&#8203;1804](https://togithub.com/spf13/cobra/issues/1804), we will be moving away from "seasonal" releases and doing more generic point release targets. Continue to track the milestones and issues in the `spf13/cobra` GitHub repository for more information! Great work everyone! Cobra would never be possible without your contributions! 🐍 **Full Changelog**: spf13/cobra@v1.5.0...v1.6.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzYuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzNi4wIn0=-->
1 parent 446447a commit ec583d2

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/rs/zerolog v1.28.0
1414
github.com/schollz/progressbar/v3 v3.11.0
1515
github.com/spf13/cast v1.5.0
16-
github.com/spf13/cobra v1.5.0
16+
github.com/spf13/cobra v1.6.1
1717
github.com/stretchr/testify v1.8.1
1818
github.com/thoas/go-funk v0.9.2
1919
golang.org/x/exp v0.0.0-20221031165847-c99f073a8326

go.sum

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ github.com/grpc-ecosystem/go-grpc-middleware/providers/zerolog/v2 v2.0.0-rc.3 h1
4343
github.com/grpc-ecosystem/go-grpc-middleware/providers/zerolog/v2 v2.0.0-rc.3/go.mod h1:54asssGY3Bohr5FRbew+bjfuQTT2WS9V7hW7gPqmcKM=
4444
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.0-rc.2.0.20201002093600-73cf2ae9d891 h1:2F7/en805byWQR92etfFjOqtRtWsUu09R7wm6LtlHEw=
4545
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.0-rc.2.0.20201002093600-73cf2ae9d891/go.mod h1:GhphxcdlaRyAuBSvo6rV71BvQcvB/vuX8ugCyybuS2k=
46-
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
4746
github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
4847
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
4948
github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213/go.mod h1:vNUNkEQ1e29fT/6vq2aBdFsgNPmy8qMdSay1npru+Sw=
@@ -88,8 +87,8 @@ github.com/schollz/progressbar/v3 v3.11.0 h1:3nIBUF1Zw/pGUaRHP7PZWmARP7ZQbWQ6vL6
8887
github.com/schollz/progressbar/v3 v3.11.0/go.mod h1:R2djRgv58sn00AGysc4fN0ip4piOGd3z88K+zVBjczs=
8988
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
9089
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
91-
github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=
92-
github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM=
90+
github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=
91+
github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY=
9392
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
9493
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
9594
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

0 commit comments

Comments
 (0)