Commit cfcaffa
authored
fix(deps): Update module github.com/spf13/cobra to v1.10.2 (#21923)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/spf13/cobra](https://redirect.github.com/spf13/cobra) | require | minor | `v1.8.1` -> `v1.10.2` |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
---
### Release Notes
<details>
<summary>spf13/cobra (github.com/spf13/cobra)</summary>
### [`v1.10.2`](https://redirect.github.com/spf13/cobra/releases/tag/v1.10.2)
[Compare Source](https://redirect.github.com/spf13/cobra/compare/v1.10.1...v1.10.2)
#### 🔧 Dependencies
- chore: Migrate from `gopkg.in/yaml.v3` to `go.yaml.in/yaml/v3` by [@​dims](https://redirect.github.com/dims) in [https://github.com/spf13/cobra/pull/2336](https://redirect.github.com/spf13/cobra/pull/2336) - the `gopkg.in/yaml.v3` package has been deprecated for some time: this should significantly cleanup dependency/supply-chains for consumers of `spf13/cobra`
#### 📈 CI/CD
- Fix linter and allow CI to pass by [@​marckhouzam](https://redirect.github.com/marckhouzam) in [https://github.com/spf13/cobra/pull/2327](https://redirect.github.com/spf13/cobra/pull/2327)
- fix: actions/setup-go v6 by [@​jpmcb](https://redirect.github.com/jpmcb) in [https://github.com/spf13/cobra/pull/2337](https://redirect.github.com/spf13/cobra/pull/2337)
#### 🔥✍🏼 Docs
- Add documentation for repeated flags functionality by [@​rvergis](https://redirect.github.com/rvergis) in [https://github.com/spf13/cobra/pull/2316](https://redirect.github.com/spf13/cobra/pull/2316)
#### 🍂 Refactors
- refactor: replace several vars with consts by [@​htoyoda18](https://redirect.github.com/htoyoda18) in [https://github.com/spf13/cobra/pull/2328](https://redirect.github.com/spf13/cobra/pull/2328)
- refactor: change minUsagePadding from var to const by [@​ssam18](https://redirect.github.com/ssam18) in [https://github.com/spf13/cobra/pull/2325](https://redirect.github.com/spf13/cobra/pull/2325)
#### 🤗 New Contributors
- [@​rvergis](https://redirect.github.com/rvergis) made their first contribution in [https://github.com/spf13/cobra/pull/2316](https://redirect.github.com/spf13/cobra/pull/2316)
- [@​htoyoda18](https://redirect.github.com/htoyoda18) made their first contribution in [https://github.com/spf13/cobra/pull/2328](https://redirect.github.com/spf13/cobra/pull/2328)
- [@​ssam18](https://redirect.github.com/ssam18) made their first contribution in [https://github.com/spf13/cobra/pull/2325](https://redirect.github.com/spf13/cobra/pull/2325)
- [@​dims](https://redirect.github.com/dims) made their first contribution in [https://github.com/spf13/cobra/pull/2336](https://redirect.github.com/spf13/cobra/pull/2336)
**Full Changelog**: spf13/cobra@v1.10.1...v1.10.2
Thank you to our amazing contributors!!!!! 🐍 🚀
### [`v1.10.1`](https://redirect.github.com/spf13/cobra/releases/tag/v1.10.1)
[Compare Source](https://redirect.github.com/spf13/cobra/compare/v1.10.0...v1.10.1)
##### 🐛 Fix
- chore: upgrade pflags v1.0.9 by [@​jpmcb](https://redirect.github.com/jpmcb) in [https://github.com/spf13/cobra/pull/2305](https://redirect.github.com/spf13/cobra/pull/2305)
v1.0.9 of pflags brought back `ParseErrorsWhitelist` and marked it as deprecated
**Full Changelog**: spf13/cobra@v1.10.0...v1.10.1
### [`v1.10.0`](https://redirect.github.com/spf13/cobra/releases/tag/v1.10.0)
[Compare Source](https://redirect.github.com/spf13/cobra/compare/v1.9.1...v1.10.0)
#### What's Changed
##### 🚨 Attention!
- Bump pflag to 1.0.8 by [@​tomasaschan](https://redirect.github.com/tomasaschan) in [https://github.com/spf13/cobra/pull/2303](https://redirect.github.com/spf13/cobra/pull/2303)
This version of `pflag` carried a breaking change: it renamed `ParseErrorsWhitelist` to `ParseErrorsAllowlist` which can break builds if both `pflag` and `cobra` are dependencies in your project.
- If you use both ` pflag and `cobra` , upgrade `pflag`to 1.0.8 and`cobra`to`1.10.0\`
- ***or*** use the newer, fixed version of `pflag` v1.0.9 which keeps the deprecated `ParseErrorsWhitelist`
More details can be found here: [https://github.com/spf13/cobra/pull/2303#issuecomment-3242333515](https://redirect.github.com/spf13/cobra/pull/2303#issuecomment-3242333515)
##### ✨ Features
- Flow context to command in SetHelpFunc by [@​Frassle](https://redirect.github.com/Frassle) in [https://github.com/spf13/cobra/pull/2241](https://redirect.github.com/spf13/cobra/pull/2241)
- The default ShellCompDirective can be customized for a command and its subcommands by [@​albers](https://redirect.github.com/albers) in [https://github.com/spf13/cobra/pull/2238](https://redirect.github.com/spf13/cobra/pull/2238)
##### 🐛 Fix
- Upgrade golangci-lint to v2, address findings by [@​scop](https://redirect.github.com/scop) in [https://github.com/spf13/cobra/pull/2279](https://redirect.github.com/spf13/cobra/pull/2279)
##### 🪠 Testing
- Test with Go 1.24 by [@​harryzcy](https://redirect.github.com/harryzcy) in [https://github.com/spf13/cobra/pull/2236](https://redirect.github.com/spf13/cobra/pull/2236)
- chore: Rm GitHub Action PR size labeler by [@​jpmcb](https://redirect.github.com/jpmcb) in [https://github.com/spf13/cobra/pull/2256](https://redirect.github.com/spf13/cobra/pull/2256)
##### 📝 Docs
- Remove traling curlybrace by [@​yedayak](https://redirect.github.com/yedayak) in [https://github.com/spf13/cobra/pull/2237](https://redirect.github.com/spf13/cobra/pull/2237)
- Update command.go by [@​styee](https://redirect.github.com/styee) in [https://github.com/spf13/cobra/pull/2248](https://redirect.github.com/spf13/cobra/pull/2248)
- feat: Add security policy by [@​jpmcb](https://redirect.github.com/jpmcb) in [https://github.com/spf13/cobra/pull/2253](https://redirect.github.com/spf13/cobra/pull/2253)
- Update Readme (Warp) by [@​ericdachen](https://redirect.github.com/ericdachen) in [https://github.com/spf13/cobra/pull/2267](https://redirect.github.com/spf13/cobra/pull/2267)
- Add Periscope to the list of projects using Cobra by [@​anishathalye](https://redirect.github.com/anishathalye) in [https://github.com/spf13/cobra/pull/2299](https://redirect.github.com/spf13/cobra/pull/2299)
#### New Contributors
- [@​harryzcy](https://redirect.github.com/harryzcy) made their first contribution in [https://github.com/spf13/cobra/pull/2236](https://redirect.github.com/spf13/cobra/pull/2236)
- [@​yedayak](https://redirect.github.com/yedayak) made their first contribution in [https://github.com/spf13/cobra/pull/2237](https://redirect.github.com/spf13/cobra/pull/2237)
- [@​Frassle](https://redirect.github.com/Frassle) made their first contribution in [https://github.com/spf13/cobra/pull/2241](https://redirect.github.com/spf13/cobra/pull/2241)
- [@​styee](https://redirect.github.com/styee) made their first contribution in [https://github.com/spf13/cobra/pull/2248](https://redirect.github.com/spf13/cobra/pull/2248)
- [@​ericdachen](https://redirect.github.com/ericdachen) made their first contribution in [https://github.com/spf13/cobra/pull/2267](https://redirect.github.com/spf13/cobra/pull/2267)
- [@​albers](https://redirect.github.com/albers) made their first contribution in [https://github.com/spf13/cobra/pull/2238](https://redirect.github.com/spf13/cobra/pull/2238)
- [@​anishathalye](https://redirect.github.com/anishathalye) made their first contribution in [https://github.com/spf13/cobra/pull/2299](https://redirect.github.com/spf13/cobra/pull/2299)
- [@​tomasaschan](https://redirect.github.com/tomasaschan) made their first contribution in [https://github.com/spf13/cobra/pull/2303](https://redirect.github.com/spf13/cobra/pull/2303)
**Full Changelog**: spf13/cobra@v1.9.1...v1.9.2
### [`v1.9.1`](https://redirect.github.com/spf13/cobra/releases/tag/v1.9.1)
[Compare Source](https://redirect.github.com/spf13/cobra/compare/v1.9.0...v1.9.1)
##### 🐛 Fixes
- Fix CompletionFunc implementation by [@​ccoVeille](https://redirect.github.com/ccoVeille) in [https://github.com/spf13/cobra/pull/2234](https://redirect.github.com/spf13/cobra/pull/2234)
- Revert "Make detection for test-binary more universal ([#​2173](https://redirect.github.com/spf13/cobra/issues/2173))" by [@​marckhouzam](https://redirect.github.com/marckhouzam) in [https://github.com/spf13/cobra/pull/2235](https://redirect.github.com/spf13/cobra/pull/2235)
**Full Changelog**: spf13/cobra@v1.9.0...v1.9.1
### [`v1.9.0`](https://redirect.github.com/spf13/cobra/releases/tag/v1.9.0)
[Compare Source](https://redirect.github.com/spf13/cobra/compare/v1.8.1...v1.9.0)
#### ✨ Features
- Allow linker to perform deadcode elimination for program using Cobra by [@​aarzilli](https://redirect.github.com/aarzilli) in [https://github.com/spf13/cobra/pull/1956](https://redirect.github.com/spf13/cobra/pull/1956)
- Add default completion command even if there are no other sub-commands by [@​marckhouzam](https://redirect.github.com/marckhouzam) in [https://github.com/spf13/cobra/pull/1559](https://redirect.github.com/spf13/cobra/pull/1559)
- Add CompletionWithDesc helper by [@​ccoVeille](https://redirect.github.com/ccoVeille) in [https://github.com/spf13/cobra/pull/2231](https://redirect.github.com/spf13/cobra/pull/2231)
#### 🐛 Fixes
- Fix deprecation comment for Command.SetOutput by [@​thaJeztah](https://redirect.github.com/thaJeztah) in [https://github.com/spf13/cobra/pull/2172](https://redirect.github.com/spf13/cobra/pull/2172)
- Replace deprecated ioutil usage by [@​nirs](https://redirect.github.com/nirs) in [https://github.com/spf13/cobra/pull/2181](https://redirect.github.com/spf13/cobra/pull/2181)
- Fix --version help and output for plugins by [@​nirs](https://redirect.github.com/nirs) in [https://github.com/spf13/cobra/pull/2180](https://redirect.github.com/spf13/cobra/pull/2180)
- Allow to reset the templates to the default by [@​marckhouzam](https://redirect.github.com/marckhouzam) in [https://github.com/spf13/cobra/pull/2229](https://redirect.github.com/spf13/cobra/pull/2229)
#### 🤖 Completions
- Make Powershell completion work in constrained mode by [@​lstemplinger](https://redirect.github.com/lstemplinger) in [https://github.com/spf13/cobra/pull/2196](https://redirect.github.com/spf13/cobra/pull/2196)
- Improve detection for flags that accept multiple values by [@​thaJeztah](https://redirect.github.com/thaJeztah) in [https://github.com/spf13/cobra/pull/2210](https://redirect.github.com/spf13/cobra/pull/2210)
- add CompletionFunc type to help with completions by [@​ccoVeille](https://redirect.github.com/ccoVeille) in [https://github.com/spf13/cobra/pull/2220](https://redirect.github.com/spf13/cobra/pull/2220)
- Add similar whitespace escape logic to bash v2 completions than in other completions by [@​kangasta](https://redirect.github.com/kangasta) in [https://github.com/spf13/cobra/pull/1743](https://redirect.github.com/spf13/cobra/pull/1743)
- Print ActiveHelp for bash along other completions by [@​marckhouzam](https://redirect.github.com/marckhouzam) in [https://github.com/spf13/cobra/pull/2076](https://redirect.github.com/spf13/cobra/pull/2076)
- fix(completions): Complete map flags multiple times by [@​gabe565](https://redirect.github.com/gabe565) in [https://github.com/spf13/cobra/pull/2174](https://redirect.github.com/spf13/cobra/pull/2174)
- fix(bash): nounset unbound file filter variable on empty extension by [@​scop](https://redirect.github.com/scop) in [https://github.com/spf13/cobra/pull/2228](https://redirect.github.com/spf13/cobra/pull/2228)
#### 🧪 Testing
- Test also with go 1.23 by [@​nirs](https://redirect.github.com/nirs) in [https://github.com/spf13/cobra/pull/2182](https://redirect.github.com/spf13/cobra/pull/2182)
- Make detection for test-binary more universal by [@​thaJeztah](https://redirect.github.com/thaJeztah) in [https://github.com/spf13/cobra/pull/2173](https://redirect.github.com/spf13/cobra/pull/2173)
#### ✍🏼 Documentation
- docs: update README.md by [@​eltociear](https://redirect.github.com/eltociear) in [https://github.com/spf13/cobra/pull/2197](https://redirect.github.com/spf13/cobra/pull/2197)
- Improve site formatting by [@​nirs](https://redirect.github.com/nirs) in [https://github.com/spf13/cobra/pull/2183](https://redirect.github.com/spf13/cobra/pull/2183)
- doc: add Conduit by [@​raulb](https://redirect.github.com/raulb) in [https://github.com/spf13/cobra/pull/2230](https://redirect.github.com/spf13/cobra/pull/2230)
- doc: azion project added to the list of CLIs that use cobra by [@​maxwelbm](https://redirect.github.com/maxwelbm) in [https://github.com/spf13/cobra/pull/2198](https://redirect.github.com/spf13/cobra/pull/2198)
- Fix broken links in active_help.md by [@​vuil](https://redirect.github.com/vuil) in [https://github.com/spf13/cobra/pull/2202](https://redirect.github.com/spf13/cobra/pull/2202)
- chore: fix function name in comment by [@​zhuhaicity](https://redirect.github.com/zhuhaicity) in [https://github.com/spf13/cobra/pull/2216](https://redirect.github.com/spf13/cobra/pull/2216)
#### 🔧 Dependency upgrades
- build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.5 to 2.0.6 by [@​thaJeztah](https://redirect.github.com/thaJeztah) in [https://github.com/spf13/cobra/pull/2206](https://redirect.github.com/spf13/cobra/pull/2206)
- Update to latest go-md2man by [@​mikelolasagasti](https://redirect.github.com/mikelolasagasti) in [https://github.com/spf13/cobra/pull/2201](https://redirect.github.com/spf13/cobra/pull/2201)
- Upgrade `pflag` dependencies for v1.9.0 by [@​jpmcb](https://redirect.github.com/jpmcb) in [https://github.com/spf13/cobra/pull/2233](https://redirect.github.com/spf13/cobra/pull/2233)
***
Thank you to all of our amazing contributors and all the great work that's been going into the completions feature!!
##### 👋🏼 New Contributors
- [@​gabe565](https://redirect.github.com/gabe565) made their first contribution in [https://github.com/spf13/cobra/pull/2174](https://redirect.github.com/spf13/cobra/pull/2174)
- [@​maxwelbm](https://redirect.github.com/maxwelbm) made their first contribution in [https://github.com/spf13/cobra/pull/2198](https://redirect.github.com/spf13/cobra/pull/2198)
- [@​lstemplinger](https://redirect.github.com/lstemplinger) made their first contribution in [https://github.com/spf13/cobra/pull/2196](https://redirect.github.com/spf13/cobra/pull/2196)
- [@​vuil](https://redirect.github.com/vuil) made their first contribution in [https://github.com/spf13/cobra/pull/2202](https://redirect.github.com/spf13/cobra/pull/2202)
- [@​mikelolasagasti](https://redirect.github.com/mikelolasagasti) made their first contribution in [https://github.com/spf13/cobra/pull/2201](https://redirect.github.com/spf13/cobra/pull/2201)
- [@​zhuhaicity](https://redirect.github.com/zhuhaicity) made their first contribution in [https://github.com/spf13/cobra/pull/2216](https://redirect.github.com/spf13/cobra/pull/2216)
- [@​ccoVeille](https://redirect.github.com/ccoVeille) made their first contribution in [https://github.com/spf13/cobra/pull/2220](https://redirect.github.com/spf13/cobra/pull/2220)
- [@​kangasta](https://redirect.github.com/kangasta) made their first contribution in [https://github.com/spf13/cobra/pull/1743](https://redirect.github.com/spf13/cobra/pull/1743)
- [@​aarzilli](https://redirect.github.com/aarzilli) made their first contribution in [https://github.com/spf13/cobra/pull/1956](https://redirect.github.com/spf13/cobra/pull/1956)
**Full Changelog**: spf13/cobra@v1.8.1...v1.9.0
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (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.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate).1 parent 8144c1c commit cfcaffa
2 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
0 commit comments