fix(deps): update module github.com/spf13/cobra to v1.10.1 #2

Merged
kunish merged 1 commits from renovate/github.com-spf13-cobra-1.x into main 2025-09-30 00:08:11 +08:00
Owner

This PR contains the following updates:

Package Change Age Confidence
github.com/spf13/cobra v1.6.1 -> v1.10.1 age confidence

Release Notes

spf13/cobra (github.com/spf13/cobra)

v1.10.1

Compare Source

🐛 Fix

v1.0.9 of pflags brought back ParseErrorsWhitelist and marked it as deprecated

Full Changelog: https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1

v1.10.0

Compare Source

What's Changed

🚨 Attention!

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 pflagto 1.0.8 andcobrato1.10.0`
  • or use the newer, fixed version of pflag v1.0.9 which keeps the deprecated ParseErrorsWhitelist

More details can be found here: #​2303 (comment)

Features
🐛 Fix
🪠 Testing
📝 Docs

New Contributors

Full Changelog: https://github.com/spf13/cobra/compare/v1.9.1...v1.9.2

v1.9.1

Compare Source

🐛 Fixes

Full Changelog: https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1

v1.9.0

Compare Source

Features

🐛 Fixes

🤖 Completions

🧪 Testing

✍🏼 Documentation

🔧 Dependency upgrades


Thank you to all of our amazing contributors and all the great work that's been going into the completions feature!!

👋🏼 New Contributors

Full Changelog: https://github.com/spf13/cobra/compare/v1.8.1...v1.9.0

v1.8.1

Compare Source

Features

  • Add env variable to suppress completion descriptions on create by @​scop in #​1938

🐛 Bug fixes

🔧 Maintenance

🧪 Testing & CI/CD

✏️ Documentation

New Contributors


Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you!!!! 🐍

Full Changelog: https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1

v1.8.0

Compare Source

Features

  • Support usage as plugin for tools like kubectl by @​nirs in #​2018 - this means that programs that utilize a "plugin-like" structure have much better support and usage (like for completions, command paths, etc.)
  • Move documentation sources to site/content by @​umarcor in #​1428
  • Add 'one required flag' group by @​marevers in #​1952 - this includes a new MarkFlagsOneRequired API for flags which can be used to mark a flag group as required and cause command failure if at least one is not used when invoked.
  • Customizable error message prefix by @​5ouma in #​2023 - This adds the SetErrPrefix and ErrPrefix APIs on the Command struct to allow for setting a custom prefix for errors
  • feat: add getters for flag completions by @​avirtopeanu-ionos in #​1943
  • Feature: allow running persistent run hooks of all parents by @​vkhoroz in #​2044
  • Improve API to get flag completion function by @​marckhouzam in #​2063

🐛 Bug fixes

🔧 Maintenance

🧪 Testing & CI/CD

✏️ Documentation


Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you!!!! 🐍

Full Changelog: https://github.com/spf13/cobra/compare/v1.7.0...v1.8.0

v1.7.0

Compare Source

Features
🐛 Bug fixes
🧪 Testing & CI/CD
🔧 Maintenance
✏️ Documentation

This release contains several long running fixes, improvements to powershell completions, and further optimizations for completions.

Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you! 🐍

Full changelog: https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [github.com/spf13/cobra](https://github.com/spf13/cobra) | `v1.6.1` -> `v1.10.1` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fcobra/v1.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fcobra/v1.6.1/v1.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>spf13/cobra (github.com/spf13/cobra)</summary> ### [`v1.10.1`](https://github.com/spf13/cobra/releases/tag/v1.10.1) [Compare Source](https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1) ##### 🐛 Fix - chore: upgrade pflags v1.0.9 by [@&#8203;jpmcb](https://github.com/jpmcb) in [#&#8203;2305](https://github.com/spf13/cobra/pull/2305) v1.0.9 of pflags brought back `ParseErrorsWhitelist` and marked it as deprecated **Full Changelog**: <https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1> ### [`v1.10.0`](https://github.com/spf13/cobra/releases/tag/v1.10.0) [Compare Source](https://github.com/spf13/cobra/compare/v1.9.1...v1.10.0) #### What's Changed ##### 🚨 Attention! - Bump pflag to 1.0.8 by [@&#8203;tomasaschan](https://github.com/tomasaschan) in [#&#8203;2303](https://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: [#&#8203;2303 (comment)](https://github.com/spf13/cobra/pull/2303#issuecomment-3242333515) ##### ✨ Features - Flow context to command in SetHelpFunc by [@&#8203;Frassle](https://github.com/Frassle) in [#&#8203;2241](https://github.com/spf13/cobra/pull/2241) - The default ShellCompDirective can be customized for a command and its subcommands by [@&#8203;albers](https://github.com/albers) in [#&#8203;2238](https://github.com/spf13/cobra/pull/2238) ##### 🐛 Fix - Upgrade golangci-lint to v2, address findings by [@&#8203;scop](https://github.com/scop) in [#&#8203;2279](https://github.com/spf13/cobra/pull/2279) ##### 🪠 Testing - Test with Go 1.24 by [@&#8203;harryzcy](https://github.com/harryzcy) in [#&#8203;2236](https://github.com/spf13/cobra/pull/2236) - chore: Rm GitHub Action PR size labeler by [@&#8203;jpmcb](https://github.com/jpmcb) in [#&#8203;2256](https://github.com/spf13/cobra/pull/2256) ##### 📝 Docs - Remove traling curlybrace by [@&#8203;yedayak](https://github.com/yedayak) in [#&#8203;2237](https://github.com/spf13/cobra/pull/2237) - Update command.go by [@&#8203;styee](https://github.com/styee) in [#&#8203;2248](https://github.com/spf13/cobra/pull/2248) - feat: Add security policy by [@&#8203;jpmcb](https://github.com/jpmcb) in [#&#8203;2253](https://github.com/spf13/cobra/pull/2253) - Update Readme (Warp) by [@&#8203;ericdachen](https://github.com/ericdachen) in [#&#8203;2267](https://github.com/spf13/cobra/pull/2267) - Add Periscope to the list of projects using Cobra by [@&#8203;anishathalye](https://github.com/anishathalye) in [#&#8203;2299](https://github.com/spf13/cobra/pull/2299) #### New Contributors - [@&#8203;harryzcy](https://github.com/harryzcy) made their first contribution in [#&#8203;2236](https://github.com/spf13/cobra/pull/2236) - [@&#8203;yedayak](https://github.com/yedayak) made their first contribution in [#&#8203;2237](https://github.com/spf13/cobra/pull/2237) - [@&#8203;Frassle](https://github.com/Frassle) made their first contribution in [#&#8203;2241](https://github.com/spf13/cobra/pull/2241) - [@&#8203;styee](https://github.com/styee) made their first contribution in [#&#8203;2248](https://github.com/spf13/cobra/pull/2248) - [@&#8203;ericdachen](https://github.com/ericdachen) made their first contribution in [#&#8203;2267](https://github.com/spf13/cobra/pull/2267) - [@&#8203;albers](https://github.com/albers) made their first contribution in [#&#8203;2238](https://github.com/spf13/cobra/pull/2238) - [@&#8203;anishathalye](https://github.com/anishathalye) made their first contribution in [#&#8203;2299](https://github.com/spf13/cobra/pull/2299) - [@&#8203;tomasaschan](https://github.com/tomasaschan) made their first contribution in [#&#8203;2303](https://github.com/spf13/cobra/pull/2303) **Full Changelog**: <https://github.com/spf13/cobra/compare/v1.9.1...v1.9.2> ### [`v1.9.1`](https://github.com/spf13/cobra/releases/tag/v1.9.1) [Compare Source](https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1) ##### 🐛 Fixes - Fix CompletionFunc implementation by [@&#8203;ccoVeille](https://github.com/ccoVeille) in [#&#8203;2234](https://github.com/spf13/cobra/pull/2234) - Revert "Make detection for test-binary more universal ([#&#8203;2173](https://github.com/spf13/cobra/issues/2173))" by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2235](https://github.com/spf13/cobra/pull/2235) **Full Changelog**: <https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1> ### [`v1.9.0`](https://github.com/spf13/cobra/releases/tag/v1.9.0) [Compare Source](https://github.com/spf13/cobra/compare/v1.8.1...v1.9.0) #### ✨ Features - Allow linker to perform deadcode elimination for program using Cobra by [@&#8203;aarzilli](https://github.com/aarzilli) in [#&#8203;1956](https://github.com/spf13/cobra/pull/1956) - Add default completion command even if there are no other sub-commands by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;1559](https://github.com/spf13/cobra/pull/1559) - Add CompletionWithDesc helper by [@&#8203;ccoVeille](https://github.com/ccoVeille) in [#&#8203;2231](https://github.com/spf13/cobra/pull/2231) #### 🐛 Fixes - Fix deprecation comment for Command.SetOutput by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;2172](https://github.com/spf13/cobra/pull/2172) - Replace deprecated ioutil usage by [@&#8203;nirs](https://github.com/nirs) in [#&#8203;2181](https://github.com/spf13/cobra/pull/2181) - Fix --version help and output for plugins by [@&#8203;nirs](https://github.com/nirs) in [#&#8203;2180](https://github.com/spf13/cobra/pull/2180) - Allow to reset the templates to the default by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2229](https://github.com/spf13/cobra/pull/2229) #### 🤖 Completions - Make Powershell completion work in constrained mode by [@&#8203;lstemplinger](https://github.com/lstemplinger) in [#&#8203;2196](https://github.com/spf13/cobra/pull/2196) - Improve detection for flags that accept multiple values by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;2210](https://github.com/spf13/cobra/pull/2210) - add CompletionFunc type to help with completions by [@&#8203;ccoVeille](https://github.com/ccoVeille) in [#&#8203;2220](https://github.com/spf13/cobra/pull/2220) - Add similar whitespace escape logic to bash v2 completions than in other completions by [@&#8203;kangasta](https://github.com/kangasta) in [#&#8203;1743](https://github.com/spf13/cobra/pull/1743) - Print ActiveHelp for bash along other completions by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2076](https://github.com/spf13/cobra/pull/2076) - fix(completions): Complete map flags multiple times by [@&#8203;gabe565](https://github.com/gabe565) in [#&#8203;2174](https://github.com/spf13/cobra/pull/2174) - fix(bash): nounset unbound file filter variable on empty extension by [@&#8203;scop](https://github.com/scop) in [#&#8203;2228](https://github.com/spf13/cobra/pull/2228) #### 🧪 Testing - Test also with go 1.23 by [@&#8203;nirs](https://github.com/nirs) in [#&#8203;2182](https://github.com/spf13/cobra/pull/2182) - Make detection for test-binary more universal by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;2173](https://github.com/spf13/cobra/pull/2173) #### ✍🏼 Documentation - docs: update README.md by [@&#8203;eltociear](https://github.com/eltociear) in [#&#8203;2197](https://github.com/spf13/cobra/pull/2197) - Improve site formatting by [@&#8203;nirs](https://github.com/nirs) in [#&#8203;2183](https://github.com/spf13/cobra/pull/2183) - doc: add Conduit by [@&#8203;raulb](https://github.com/raulb) in [#&#8203;2230](https://github.com/spf13/cobra/pull/2230) - doc: azion project added to the list of CLIs that use cobra by [@&#8203;maxwelbm](https://github.com/maxwelbm) in [#&#8203;2198](https://github.com/spf13/cobra/pull/2198) - Fix broken links in active\_help.md by [@&#8203;vuil](https://github.com/vuil) in [#&#8203;2202](https://github.com/spf13/cobra/pull/2202) - chore: fix function name in comment by [@&#8203;zhuhaicity](https://github.com/zhuhaicity) in [#&#8203;2216](https://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 [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;2206](https://github.com/spf13/cobra/pull/2206) - Update to latest go-md2man by [@&#8203;mikelolasagasti](https://github.com/mikelolasagasti) in [#&#8203;2201](https://github.com/spf13/cobra/pull/2201) - Upgrade `pflag` dependencies for v1.9.0 by [@&#8203;jpmcb](https://github.com/jpmcb) in [#&#8203;2233](https://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 - [@&#8203;gabe565](https://github.com/gabe565) made their first contribution in [#&#8203;2174](https://github.com/spf13/cobra/pull/2174) - [@&#8203;maxwelbm](https://github.com/maxwelbm) made their first contribution in [#&#8203;2198](https://github.com/spf13/cobra/pull/2198) - [@&#8203;lstemplinger](https://github.com/lstemplinger) made their first contribution in [#&#8203;2196](https://github.com/spf13/cobra/pull/2196) - [@&#8203;vuil](https://github.com/vuil) made their first contribution in [#&#8203;2202](https://github.com/spf13/cobra/pull/2202) - [@&#8203;mikelolasagasti](https://github.com/mikelolasagasti) made their first contribution in [#&#8203;2201](https://github.com/spf13/cobra/pull/2201) - [@&#8203;zhuhaicity](https://github.com/zhuhaicity) made their first contribution in [#&#8203;2216](https://github.com/spf13/cobra/pull/2216) - [@&#8203;ccoVeille](https://github.com/ccoVeille) made their first contribution in [#&#8203;2220](https://github.com/spf13/cobra/pull/2220) - [@&#8203;kangasta](https://github.com/kangasta) made their first contribution in [#&#8203;1743](https://github.com/spf13/cobra/pull/1743) - [@&#8203;aarzilli](https://github.com/aarzilli) made their first contribution in [#&#8203;1956](https://github.com/spf13/cobra/pull/1956) **Full Changelog**: <https://github.com/spf13/cobra/compare/v1.8.1...v1.9.0> ### [`v1.8.1`](https://github.com/spf13/cobra/releases/tag/v1.8.1) [Compare Source](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1) #### ✨ Features - Add env variable to suppress completion descriptions on create by [@&#8203;scop](https://github.com/scop) in [#&#8203;1938](https://github.com/spf13/cobra/pull/1938) #### 🐛 Bug fixes - Micro-optimizations by [@&#8203;scop](https://github.com/scop) in [#&#8203;1957](https://github.com/spf13/cobra/pull/1957) #### 🔧 Maintenance - build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.3 to 2.0.4 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;2127](https://github.com/spf13/cobra/pull/2127) - Consistent annotation names by [@&#8203;nirs](https://github.com/nirs) in [#&#8203;2140](https://github.com/spf13/cobra/pull/2140) - Remove fully inactivated linters by [@&#8203;nirs](https://github.com/nirs) in [#&#8203;2148](https://github.com/spf13/cobra/pull/2148) - Address golangci-lint deprecation warnings, enable some more linters by [@&#8203;scop](https://github.com/scop) in [#&#8203;2152](https://github.com/spf13/cobra/pull/2152) #### 🧪 Testing & CI/CD - Add test for func in cobra.go by [@&#8203;korovindenis](https://github.com/korovindenis) in [#&#8203;2094](https://github.com/spf13/cobra/pull/2094) - ci: test golang 1.22 by [@&#8203;cyrilico](https://github.com/cyrilico) in [#&#8203;2113](https://github.com/spf13/cobra/pull/2113) - Optimized and added more linting by [@&#8203;scop](https://github.com/scop) in [#&#8203;2099](https://github.com/spf13/cobra/pull/2099) - build(deps): bump actions/setup-go from 4 to 5 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;2087](https://github.com/spf13/cobra/pull/2087) - build(deps): bump actions/labeler from 4 to 5 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;2086](https://github.com/spf13/cobra/pull/2086) - build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;2108](https://github.com/spf13/cobra/pull/2108) - build(deps): bump actions/cache from 3 to 4 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;2102](https://github.com/spf13/cobra/pull/2102) #### ✏️ Documentation - Fixes and docs for usage as plugin by [@&#8203;nirs](https://github.com/nirs) in [#&#8203;2070](https://github.com/spf13/cobra/pull/2070) - flags: clarify documentation that LocalFlags related function do not modify the state by [@&#8203;niamster](https://github.com/niamster) in [#&#8203;2064](https://github.com/spf13/cobra/pull/2064) - chore: remove repetitive words by [@&#8203;racerole](https://github.com/racerole) in [#&#8203;2122](https://github.com/spf13/cobra/pull/2122) - Add LXC to the list of projects using Cobra [@&#8203;VaradBelwalkar](https://github.com/VaradBelwalkar) in [#&#8203;2071](https://github.com/spf13/cobra/pull/2071) - Update projects\_using\_cobra.md by [@&#8203;marcuskohlberg](https://github.com/marcuskohlberg) in [#&#8203;2089](https://github.com/spf13/cobra/pull/2089) - \[chore]: update projects using cobra by [@&#8203;cmwylie19](https://github.com/cmwylie19) in [#&#8203;2093](https://github.com/spf13/cobra/pull/2093) - Add Taikun CLI to list of projects by [@&#8203;Smidra](https://github.com/Smidra) in [#&#8203;2098](https://github.com/spf13/cobra/pull/2098) - Add Incus to the list of projects using Cobra by [@&#8203;montag451](https://github.com/montag451) in [#&#8203;2118](https://github.com/spf13/cobra/pull/2118) #### New Contributors - [@&#8203;VaradBelwalkar](https://github.com/VaradBelwalkar) made their first contribution in [#&#8203;2071](https://github.com/spf13/cobra/pull/2071) - [@&#8203;marcuskohlberg](https://github.com/marcuskohlberg) made their first contribution in [#&#8203;2089](https://github.com/spf13/cobra/pull/2089) - [@&#8203;cmwylie19](https://github.com/cmwylie19) made their first contribution in [#&#8203;2093](https://github.com/spf13/cobra/pull/2093) - [@&#8203;korovindenis](https://github.com/korovindenis) made their first contribution in [#&#8203;2094](https://github.com/spf13/cobra/pull/2094) - [@&#8203;niamster](https://github.com/niamster) made their first contribution in [#&#8203;2064](https://github.com/spf13/cobra/pull/2064) - [@&#8203;Smidra](https://github.com/Smidra) made their first contribution in [#&#8203;2098](https://github.com/spf13/cobra/pull/2098) - [@&#8203;montag451](https://github.com/montag451) made their first contribution in [#&#8203;2118](https://github.com/spf13/cobra/pull/2118) - [@&#8203;cyrilico](https://github.com/cyrilico) made their first contribution in [#&#8203;2113](https://github.com/spf13/cobra/pull/2113) - [@&#8203;racerole](https://github.com/racerole) made their first contribution in [#&#8203;2122](https://github.com/spf13/cobra/pull/2122) - [@&#8203;pedromotita](https://github.com/pedromotita) made their first contribution in [#&#8203;2120](https://github.com/spf13/cobra/pull/2120) - [@&#8203;cubxxw](https://github.com/cubxxw) made their first contribution in [#&#8203;2128](https://github.com/spf13/cobra/pull/2128) *** Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you!!!! 🐍 **Full Changelog**: <https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1> ### [`v1.8.0`](https://github.com/spf13/cobra/releases/tag/v1.8.0) [Compare Source](https://github.com/spf13/cobra/compare/v1.7.0...v1.8.0) #### ✨ Features - Support usage as plugin for tools like kubectl by [@&#8203;nirs](https://github.com/nirs) in [#&#8203;2018](https://github.com/spf13/cobra/pull/2018) - this means that programs that utilize a "plugin-like" structure have much better support and usage (like for completions, command paths, etc.) - Move documentation sources to site/content by [@&#8203;umarcor](https://github.com/umarcor) in [#&#8203;1428](https://github.com/spf13/cobra/pull/1428) - Add 'one required flag' group by [@&#8203;marevers](https://github.com/marevers) in [#&#8203;1952](https://github.com/spf13/cobra/pull/1952) - this includes a new `MarkFlagsOneRequired` API for flags which can be used to mark a flag group as required and cause command failure if at least one is not used when invoked. - Customizable error message prefix by [@&#8203;5ouma](https://github.com/5ouma) in [#&#8203;2023](https://github.com/spf13/cobra/pull/2023) - This adds the `SetErrPrefix` and `ErrPrefix` APIs on the `Command` struct to allow for setting a custom prefix for errors - feat: add getters for flag completions by [@&#8203;avirtopeanu-ionos](https://github.com/avirtopeanu-ionos) in [#&#8203;1943](https://github.com/spf13/cobra/pull/1943) - Feature: allow running persistent run hooks of all parents by [@&#8203;vkhoroz](https://github.com/vkhoroz) in [#&#8203;2044](https://github.com/spf13/cobra/pull/2044) - Improve API to get flag completion function by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2063](https://github.com/spf13/cobra/pull/2063) #### 🐛 Bug fixes - Fix typo in fish completions by [@&#8203;twpayne](https://github.com/twpayne) in [#&#8203;1945](https://github.com/spf13/cobra/pull/1945) - Fix grammar: 'allows to' by [@&#8203;supertassu](https://github.com/supertassu) in [#&#8203;1978](https://github.com/spf13/cobra/pull/1978) - powershell: escape variable with curly brackets by [@&#8203;Luap99](https://github.com/Luap99) in [#&#8203;1960](https://github.com/spf13/cobra/pull/1960) - Don't complete --help flag when flag parsing disabled by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2061](https://github.com/spf13/cobra/pull/2061) - Replace all non-alphanumerics in active help env var program prefix by [@&#8203;scop](https://github.com/scop) in [#&#8203;1940](https://github.com/spf13/cobra/pull/1940) #### 🔧 Maintenance - build(deps): bump golangci/golangci-lint-action from 3.4.0 to 3.5.0 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1971](https://github.com/spf13/cobra/pull/1971) - build(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1976](https://github.com/spf13/cobra/pull/1976) - build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;2021](https://github.com/spf13/cobra/pull/2021) - build(deps): bump actions/setup-go from 3 to 4 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;1934](https://github.com/spf13/cobra/pull/1934) - build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.2 to 2.0.3 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;2047](https://github.com/spf13/cobra/pull/2047) - build(deps): bump actions/checkout from 3 to 4 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;2028](https://github.com/spf13/cobra/pull/2028) - command: temporarily disable G602 due to [securego/gosec#1005](https://github.com/securego/gosec/issues/1005) by [@&#8203;umarcor](https://github.com/umarcor) in [#&#8203;2022](https://github.com/spf13/cobra/pull/2022) #### 🧪 Testing & CI/CD - test: make fish\_completions\_test more robust by [@&#8203;branchvincent](https://github.com/branchvincent) in [#&#8203;1980](https://github.com/spf13/cobra/pull/1980) - golangci: enable 'unused' and disable deprecated replaced by it by [@&#8203;umarcor](https://github.com/umarcor) in [#&#8203;1983](https://github.com/spf13/cobra/pull/1983) - cleanup: minor corrections to unit tests by [@&#8203;JunNishimura](https://github.com/JunNishimura) in [#&#8203;2003](https://github.com/spf13/cobra/pull/2003) - ci: test golang 1.21 by [@&#8203;nunoadrego](https://github.com/nunoadrego) in [#&#8203;2024](https://github.com/spf13/cobra/pull/2024) - Fix linter errors by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2052](https://github.com/spf13/cobra/pull/2052) - Add tests for flag completion registration by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2053](https://github.com/spf13/cobra/pull/2053) #### ✏️ Documentation - doc: fix typo, Deperecated -> Deprecated by [@&#8203;callthingsoff](https://github.com/callthingsoff) in [#&#8203;2000](https://github.com/spf13/cobra/pull/2000) - Add notes to doc about the execution condition of \*PreRun and \*PostRun functions by [@&#8203;haoming29](https://github.com/haoming29) in [#&#8203;2041](https://github.com/spf13/cobra/pull/2041) *** Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you!!!! 🐍 **Full Changelog**: <https://github.com/spf13/cobra/compare/v1.7.0...v1.8.0> ### [`v1.7.0`](https://github.com/spf13/cobra/releases/tag/v1.7.0) [Compare Source](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0) ##### ✨ Features - Allow to preserve ordering of completions in `bash`, `zsh`, `pwsh`, & `fish`: [@&#8203;h4ck3rk3y](https://github.com/h4ck3rk3y) [#&#8203;1903](https://github.com/spf13/cobra/issues/1903) - Add support for PowerShell 7.2+ in completions: [@&#8203;oldium](https://github.com/oldium) [#&#8203;1916](https://github.com/spf13/cobra/issues/1916) - Allow sourcing zsh completion script: [@&#8203;marckhouzam](https://github.com/marckhouzam) [#&#8203;1917](https://github.com/spf13/cobra/issues/1917) ##### 🐛 Bug fixes - Don't remove flag values that match sub-command name: [@&#8203;brianpursley](https://github.com/brianpursley) [#&#8203;1781](https://github.com/spf13/cobra/issues/1781) - Fix powershell completions not returning single word: [@&#8203;totkeks](https://github.com/totkeks) [#&#8203;1850](https://github.com/spf13/cobra/issues/1850) - Remove masked `template` import variable name: [@&#8203;yashLadha](https://github.com/yashLadha) [#&#8203;1879](https://github.com/spf13/cobra/issues/1879) - Correctly detect completions with dash in argument: [@&#8203;oncilla](https://github.com/oncilla) [#&#8203;1817](https://github.com/spf13/cobra/issues/1817) ##### 🧪 Testing & CI/CD - Deprecate Go 1.15 in CI: [@&#8203;umarcor](https://github.com/umarcor) [#&#8203;1866](https://github.com/spf13/cobra/issues/1866) - Deprecate Go 1.16 in CI: [@&#8203;umarcor](https://github.com/umarcor) [#&#8203;1926](https://github.com/spf13/cobra/issues/1926) - Add testing for Go 1.20 in CI: [@&#8203;umarcor](https://github.com/umarcor) [#&#8203;1925](https://github.com/spf13/cobra/issues/1925) - Add tests to illustrate unknown flag bug: [@&#8203;brianpursley](https://github.com/brianpursley) [#&#8203;1854](https://github.com/spf13/cobra/issues/1854) ##### 🔧 Maintenance - Update main image to better handle dark backgrounds: [@&#8203;Deleplace](https://github.com/Deleplace) and [@&#8203;marckhouzam](https://github.com/marckhouzam) [#&#8203;1883](https://github.com/spf13/cobra/issues/1883) - Fix `stale.yaml` mispellings: [@&#8203;enrichman](https://github.com/enrichman) [#&#8203;1863](https://github.com/spf13/cobra/issues/1863) - Remove stale bot from GitHub actions: [@&#8203;jpmcb](https://github.com/jpmcb) [#&#8203;1908](https://github.com/spf13/cobra/issues/1908) - Add makefile target for installing dependencies: [@&#8203;umarcor](https://github.com/umarcor) [#&#8203;1865](https://github.com/spf13/cobra/issues/1865) - Add Sia to projects using Cobra: [@&#8203;mike76-dev](https://github.com/mike76-dev) [#&#8203;1844](https://github.com/spf13/cobra/issues/1844) - Add `Vitess` and `Arewefastyet` to projects using cobra: [@&#8203;frouioui](https://github.com/frouioui) [#&#8203;1932](https://github.com/spf13/cobra/issues/1932) - Fixup for Kubescape github org: [@&#8203;dwertent](https://github.com/dwertent) [#&#8203;1874](https://github.com/spf13/cobra/issues/1874) - Fix route for GitHub workflows badge: [@&#8203;sh-cho](https://github.com/sh-cho) [#&#8203;1884](https://github.com/spf13/cobra/issues/1884) - Fixup for GoDoc style documentation: [@&#8203;yashLadha](https://github.com/yashLadha) [#&#8203;1885](https://github.com/spf13/cobra/issues/1885) - Various bash scripting improvements for completion: [@&#8203;scop](https://github.com/scop) [#&#8203;1702](https://github.com/spf13/cobra/issues/1702) - Add Constellation to projects using Cobra: [@&#8203;datosh](https://github.com/datosh) [#&#8203;1829](https://github.com/spf13/cobra/issues/1829) ##### ✏️ Documentation - Add documentation about disabling completion descriptions: [@&#8203;Shihta](https://github.com/Shihta) [#&#8203;1901](https://github.com/spf13/cobra/issues/1901) - Improve `MarkFlagsMutuallyExclusive` example in user guide: [@&#8203;janhn](https://github.com/janhn) [#&#8203;1904](https://github.com/spf13/cobra/issues/1904) - Update `shell_completions.md`: [@&#8203;gusega](https://github.com/gusega) [#&#8203;1907](https://github.com/spf13/cobra/issues/1907) - Update copywrite year: [@&#8203;umarcor](https://github.com/umarcor) [#&#8203;1927](https://github.com/spf13/cobra/issues/1927) - Document suggested layout of subcommands: [@&#8203;lcarva](https://github.com/lcarva) [#&#8203;1930](https://github.com/spf13/cobra/issues/1930) - Replace deprecated ExactValidArgs with MatchAll in doc: [@&#8203;doniacld](https://github.com/doniacld) [#&#8203;1836](https://github.com/spf13/cobra/issues/1836) *** This release contains several long running fixes, improvements to powershell completions, and further optimizations for completions. Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you! 🐍 Full changelog: <https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQxLjEzMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
renovate added 1 commit 2025-09-29 23:28:03 +08:00
Author
Owner

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
github.com/spf13/pflag v1.0.5 -> v1.0.9
### ℹ Artifact update notice ##### File name: go.mod In order to perform the update(s) described in the table above, Renovate ran the `go get` command, which resulted in the following additional change(s): - 1 additional dependency was updated Details: | **Package** | **Change** | | :----------------------- | :------------------- | | `github.com/spf13/pflag` | `v1.0.5` -> `v1.0.9` |
kunish merged commit acf13da16a into main 2025-09-30 00:08:11 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/v2dat#2