spf13/cobra
### [`v1.6.0`](https://togithub.com/spf13/cobra/releases/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: [@aawsome](https://togithub.com/aawsome) [@marckhouzam](https://togithub.com/marckhouzam) [#1003](https://togithub.com/spf13/cobra/issues/1003)
- Support for case-insensitive command names: [@YuviGold](https://togithub.com/YuviGold) [#1802](https://togithub.com/spf13/cobra/issues/1802)
- Expose `ValidateRequiredFlags` and `ValidateFlagGroups`: [@skeetwu](https://togithub.com/skeetwu) [#1760](https://togithub.com/spf13/cobra/issues/1760)
- Add `--version` flag to help output: [@fnickels](https://togithub.com/fnickels) [#1707](https://togithub.com/spf13/cobra/issues/1707)
- Add `--help` and `--version` flag in completions: [@marckhouzam](https://togithub.com/marckhouzam) [#1813](https://togithub.com/spf13/cobra/issues/1813)
- Add `OnFinalize` method: [@yann-soubeyrand](https://togithub.com/yann-soubeyrand) [#1788](https://togithub.com/spf13/cobra/issues/1788)
- Allow user to add completion for powershell alias: [@marckhouzam](https://togithub.com/marckhouzam) [#1621](https://togithub.com/spf13/cobra/issues/1621)
- Make `InitDefaultcompletionCmd` public: [@gssbzn](https://togithub.com/gssbzn) [#1467](https://togithub.com/spf13/cobra/issues/1467)
##### Deprecation 👎🏼
- `ExactValidArgs` is deprecated (but not being removed entirely). This is abit nuanced, so checkout [#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): [@umarcor](https://togithub.com/umarcor) [#1643](https://togithub.com/spf13/cobra/issues/1643)
##### Bug fixes 🐛
- Fix (bash-v2) `activeHelp` length check syntax: [@scop](https://togithub.com/scop) [#1762](https://togithub.com/spf13/cobra/issues/1762)
- Fix correct command path in `see_also` for yaml documentation: [@zregvart](https://togithub.com/zregvart) [#1771](https://togithub.com/spf13/cobra/issues/1771)
- Fix showing flags that shadow parent persistent flag in child help messaging: [@brianpursley](https://togithub.com/brianpursley) [#1776](https://togithub.com/spf13/cobra/issues/1776)
##### Dependencies 🗳️
- Upgrade to use `gopkg.in/yaml.v3`: [@tklauser](https://togithub.com/tklauser) [#1766](https://togithub.com/spf13/cobra/issues/1766)
##### Testing 🤔
- Test on Golang 1.19: [@umarcor](https://togithub.com/umarcor) & [@jpmcb](https://togithub.com/jpmcb) [#1782](https://togithub.com/spf13/cobra/issues/1782)
- Renamed powershell completion tests: [@marckhouzam](https://togithub.com/marckhouzam) [#1803](https://togithub.com/spf13/cobra/issues/1803)
- Use `action/setup-go` cache: [@umarcor](https://togithub.com/umarcor) [#1783](https://togithub.com/spf13/cobra/issues/1783)
- Add `workflow_dispatch` to CI actions: [@umarcor](https://togithub.com/umarcor) [#1387](https://togithub.com/spf13/cobra/issues/1387)
- Add minimum GitHub token permissions for workflows: [@varunsh-coder](https://togithub.com/varunsh-coder) [#1792](https://togithub.com/spf13/cobra/issues/1792)
##### Docs ✏️
- Fixup spelling for GitHub CLI: [@eltociear](https://togithub.com/eltociear) [#1744](https://togithub.com/spf13/cobra/issues/1744)
- Clarify `SetContext` documentation: [@katexochen](https://togithub.com/katexochen) [#1748](https://togithub.com/spf13/cobra/issues/1748)
- Instruct user to `go install` for binary: [@marckhouzam](https://togithub.com/marckhouzam) [#1726](https://togithub.com/spf13/cobra/issues/1726)
- User guide cleanup: [@marckhouzam](https://togithub.com/marckhouzam) [#1656](https://togithub.com/spf13/cobra/issues/1656)
- Document option to hide the default completion command: [@marckhouzam](https://togithub.com/marckhouzam) [#1779](https://togithub.com/spf13/cobra/issues/1779)
##### Misc 💭
- Add KubeVirt, CloudQuery, Cilium, Okteto, Zitadel, Allero to projects using cobra: [@maiqueb](https://togithub.com/maiqueb) [#1741](https://togithub.com/spf13/cobra/issues/1741), [@yevgenypats](https://togithub.com/yevgenypats) [#1742](https://togithub.com/spf13/cobra/issues/1742), [@tklauser](https://togithub.com/tklauser) [#1745](https://togithub.com/spf13/cobra/issues/1745), [@jLopezbarb](https://togithub.com/jLopezbarb) [#1759](https://togithub.com/spf13/cobra/issues/1759), [@fforootd](https://togithub.com/fforootd) [#1772](https://togithub.com/spf13/cobra/issues/1772), [@dimabru](https://togithub.com/dimabru) [#1819](https://togithub.com/spf13/cobra/issues/1819)
- Use correct stale action `exempt` yaml keys: [@jpmcb](https://togithub.com/jpmcb) [#1800](https://togithub.com/spf13/cobra/issues/1800)
- Add missing license headers: [@umarcor](https://togithub.com/umarcor) [#1809](https://togithub.com/spf13/cobra/issues/1809)
*Note:* Per [#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**: https://github.com/spf13/cobra/compare/v1.5.0...v1.6.0
spf13/viper
### [`v1.13.0`](https://togithub.com/spf13/viper/releases/v1.13.0)
[Compare Source](https://togithub.com/spf13/viper/compare/v1.12.0...v1.13.0)
**Important:** This is the last release supporting Go 1.15.
#### What's Changed
##### Exciting New Features 🎉
- Add etcd3 to supported remote providers by [@franklinkim](https://togithub.com/franklinkim) in [https://github.com/spf13/viper/pull/1371](https://togithub.com/spf13/viper/pull/1371)
##### Enhancements 🚀
- Fix go-staticcheck failures (ST1005) by [@mjmaisey](https://togithub.com/mjmaisey) in [https://github.com/spf13/viper/pull/1373](https://togithub.com/spf13/viper/pull/1373)
- Use jsonc in markdown codeblocks for better readability by [@HurSungYun](https://togithub.com/HurSungYun) in [https://github.com/spf13/viper/pull/1393](https://togithub.com/spf13/viper/pull/1393)
- Add Go 1.19 support by [@sagikazarmark](https://togithub.com/sagikazarmark) in [https://github.com/spf13/viper/pull/1424](https://togithub.com/spf13/viper/pull/1424)
- Adds support for uint16 with `GetUint16` by [@oxisto](https://togithub.com/oxisto) in [https://github.com/spf13/viper/pull/1405](https://togithub.com/spf13/viper/pull/1405)
- Add a DebugTo convenience funtion by [@bcrochet](https://togithub.com/bcrochet) in [https://github.com/spf13/viper/pull/1414](https://togithub.com/spf13/viper/pull/1414)
##### Bug Fixes 🐛
- Recurse into arrays when converting keys to lowercase by [@awrichar](https://togithub.com/awrichar) in [https://github.com/spf13/viper/pull/1387](https://togithub.com/spf13/viper/pull/1387)
##### Dependency Updates ⬆️
- build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1374](https://togithub.com/spf13/viper/pull/1374)
- build(deps): bump github.com/subosito/gotenv from 1.3.0 to 1.4.0 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1375](https://togithub.com/spf13/viper/pull/1375)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1378](https://togithub.com/spf13/viper/pull/1378)
- build(deps): bump gopkg.in/yaml.v3 from 3.0.0 to 3.0.1 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1360](https://togithub.com/spf13/viper/pull/1360)
- build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.3 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1381](https://togithub.com/spf13/viper/pull/1381)
- build(deps): bump github.com/stretchr/testify from 1.7.3 to 1.7.4 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1384](https://togithub.com/spf13/viper/pull/1384)
- build(deps): bump mheap/github-action-required-labels from 1 to 2 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1383](https://togithub.com/spf13/viper/pull/1383)
- build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.8.0 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1395](https://togithub.com/spf13/viper/pull/1395)
- build(deps): bump github.com/subosito/gotenv from 1.4.0 to 1.4.1 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1420](https://togithub.com/spf13/viper/pull/1420)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.2 to 2.0.5 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1422](https://togithub.com/spf13/viper/pull/1422)
- build(deps): bump gopkg.in/ini.v1 from 1.66.4 to 1.67.0 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1412](https://togithub.com/spf13/viper/pull/1412)
#### New Contributors
- [@mjmaisey](https://togithub.com/mjmaisey) made their first contribution in [https://github.com/spf13/viper/pull/1373](https://togithub.com/spf13/viper/pull/1373)
- [@HurSungYun](https://togithub.com/HurSungYun) made their first contribution in [https://github.com/spf13/viper/pull/1393](https://togithub.com/spf13/viper/pull/1393)
- [@franklinkim](https://togithub.com/franklinkim) made their first contribution in [https://github.com/spf13/viper/pull/1371](https://togithub.com/spf13/viper/pull/1371)
- [@awrichar](https://togithub.com/awrichar) made their first contribution in [https://github.com/spf13/viper/pull/1387](https://togithub.com/spf13/viper/pull/1387)
- [@oxisto](https://togithub.com/oxisto) made their first contribution in [https://github.com/spf13/viper/pull/1405](https://togithub.com/spf13/viper/pull/1405)
- [@bcrochet](https://togithub.com/bcrochet) made their first contribution in [https://github.com/spf13/viper/pull/1414](https://togithub.com/spf13/viper/pull/1414)
**Full Changelog**: https://github.com/spf13/viper/compare/v1.12.0...v1.13.0
Configuration
📅 Schedule: 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
v1.5.0
->v1.6.0
v1.12.0
->v1.13.0
Release Notes
spf13/cobra
### [`v1.6.0`](https://togithub.com/spf13/cobra/releases/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: [@aawsome](https://togithub.com/aawsome) [@marckhouzam](https://togithub.com/marckhouzam) [#1003](https://togithub.com/spf13/cobra/issues/1003) - Support for case-insensitive command names: [@YuviGold](https://togithub.com/YuviGold) [#1802](https://togithub.com/spf13/cobra/issues/1802) - Expose `ValidateRequiredFlags` and `ValidateFlagGroups`: [@skeetwu](https://togithub.com/skeetwu) [#1760](https://togithub.com/spf13/cobra/issues/1760) - Add `--version` flag to help output: [@fnickels](https://togithub.com/fnickels) [#1707](https://togithub.com/spf13/cobra/issues/1707) - Add `--help` and `--version` flag in completions: [@marckhouzam](https://togithub.com/marckhouzam) [#1813](https://togithub.com/spf13/cobra/issues/1813) - Add `OnFinalize` method: [@yann-soubeyrand](https://togithub.com/yann-soubeyrand) [#1788](https://togithub.com/spf13/cobra/issues/1788) - Allow user to add completion for powershell alias: [@marckhouzam](https://togithub.com/marckhouzam) [#1621](https://togithub.com/spf13/cobra/issues/1621) - Make `InitDefaultcompletionCmd` public: [@gssbzn](https://togithub.com/gssbzn) [#1467](https://togithub.com/spf13/cobra/issues/1467) ##### Deprecation 👎🏼 - `ExactValidArgs` is deprecated (but not being removed entirely). This is abit nuanced, so checkout [#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): [@umarcor](https://togithub.com/umarcor) [#1643](https://togithub.com/spf13/cobra/issues/1643) ##### Bug fixes 🐛 - Fix (bash-v2) `activeHelp` length check syntax: [@scop](https://togithub.com/scop) [#1762](https://togithub.com/spf13/cobra/issues/1762) - Fix correct command path in `see_also` for yaml documentation: [@zregvart](https://togithub.com/zregvart) [#1771](https://togithub.com/spf13/cobra/issues/1771) - Fix showing flags that shadow parent persistent flag in child help messaging: [@brianpursley](https://togithub.com/brianpursley) [#1776](https://togithub.com/spf13/cobra/issues/1776) ##### Dependencies 🗳️ - Upgrade to use `gopkg.in/yaml.v3`: [@tklauser](https://togithub.com/tklauser) [#1766](https://togithub.com/spf13/cobra/issues/1766) ##### Testing 🤔 - Test on Golang 1.19: [@umarcor](https://togithub.com/umarcor) & [@jpmcb](https://togithub.com/jpmcb) [#1782](https://togithub.com/spf13/cobra/issues/1782) - Renamed powershell completion tests: [@marckhouzam](https://togithub.com/marckhouzam) [#1803](https://togithub.com/spf13/cobra/issues/1803) - Use `action/setup-go` cache: [@umarcor](https://togithub.com/umarcor) [#1783](https://togithub.com/spf13/cobra/issues/1783) - Add `workflow_dispatch` to CI actions: [@umarcor](https://togithub.com/umarcor) [#1387](https://togithub.com/spf13/cobra/issues/1387) - Add minimum GitHub token permissions for workflows: [@varunsh-coder](https://togithub.com/varunsh-coder) [#1792](https://togithub.com/spf13/cobra/issues/1792) ##### Docs ✏️ - Fixup spelling for GitHub CLI: [@eltociear](https://togithub.com/eltociear) [#1744](https://togithub.com/spf13/cobra/issues/1744) - Clarify `SetContext` documentation: [@katexochen](https://togithub.com/katexochen) [#1748](https://togithub.com/spf13/cobra/issues/1748) - Instruct user to `go install` for binary: [@marckhouzam](https://togithub.com/marckhouzam) [#1726](https://togithub.com/spf13/cobra/issues/1726) - User guide cleanup: [@marckhouzam](https://togithub.com/marckhouzam) [#1656](https://togithub.com/spf13/cobra/issues/1656) - Document option to hide the default completion command: [@marckhouzam](https://togithub.com/marckhouzam) [#1779](https://togithub.com/spf13/cobra/issues/1779) ##### Misc 💭 - Add KubeVirt, CloudQuery, Cilium, Okteto, Zitadel, Allero to projects using cobra: [@maiqueb](https://togithub.com/maiqueb) [#1741](https://togithub.com/spf13/cobra/issues/1741), [@yevgenypats](https://togithub.com/yevgenypats) [#1742](https://togithub.com/spf13/cobra/issues/1742), [@tklauser](https://togithub.com/tklauser) [#1745](https://togithub.com/spf13/cobra/issues/1745), [@jLopezbarb](https://togithub.com/jLopezbarb) [#1759](https://togithub.com/spf13/cobra/issues/1759), [@fforootd](https://togithub.com/fforootd) [#1772](https://togithub.com/spf13/cobra/issues/1772), [@dimabru](https://togithub.com/dimabru) [#1819](https://togithub.com/spf13/cobra/issues/1819) - Use correct stale action `exempt` yaml keys: [@jpmcb](https://togithub.com/jpmcb) [#1800](https://togithub.com/spf13/cobra/issues/1800) - Add missing license headers: [@umarcor](https://togithub.com/umarcor) [#1809](https://togithub.com/spf13/cobra/issues/1809) *Note:* Per [#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**: https://github.com/spf13/cobra/compare/v1.5.0...v1.6.0spf13/viper
### [`v1.13.0`](https://togithub.com/spf13/viper/releases/v1.13.0) [Compare Source](https://togithub.com/spf13/viper/compare/v1.12.0...v1.13.0) **Important:** This is the last release supporting Go 1.15. #### What's Changed ##### Exciting New Features 🎉 - Add etcd3 to supported remote providers by [@franklinkim](https://togithub.com/franklinkim) in [https://github.com/spf13/viper/pull/1371](https://togithub.com/spf13/viper/pull/1371) ##### Enhancements 🚀 - Fix go-staticcheck failures (ST1005) by [@mjmaisey](https://togithub.com/mjmaisey) in [https://github.com/spf13/viper/pull/1373](https://togithub.com/spf13/viper/pull/1373) - Use jsonc in markdown codeblocks for better readability by [@HurSungYun](https://togithub.com/HurSungYun) in [https://github.com/spf13/viper/pull/1393](https://togithub.com/spf13/viper/pull/1393) - Add Go 1.19 support by [@sagikazarmark](https://togithub.com/sagikazarmark) in [https://github.com/spf13/viper/pull/1424](https://togithub.com/spf13/viper/pull/1424) - Adds support for uint16 with `GetUint16` by [@oxisto](https://togithub.com/oxisto) in [https://github.com/spf13/viper/pull/1405](https://togithub.com/spf13/viper/pull/1405) - Add a DebugTo convenience funtion by [@bcrochet](https://togithub.com/bcrochet) in [https://github.com/spf13/viper/pull/1414](https://togithub.com/spf13/viper/pull/1414) ##### Bug Fixes 🐛 - Recurse into arrays when converting keys to lowercase by [@awrichar](https://togithub.com/awrichar) in [https://github.com/spf13/viper/pull/1387](https://togithub.com/spf13/viper/pull/1387) ##### Dependency Updates ⬆️ - build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1374](https://togithub.com/spf13/viper/pull/1374) - build(deps): bump github.com/subosito/gotenv from 1.3.0 to 1.4.0 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1375](https://togithub.com/spf13/viper/pull/1375) - build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1378](https://togithub.com/spf13/viper/pull/1378) - build(deps): bump gopkg.in/yaml.v3 from 3.0.0 to 3.0.1 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1360](https://togithub.com/spf13/viper/pull/1360) - build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.3 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1381](https://togithub.com/spf13/viper/pull/1381) - build(deps): bump github.com/stretchr/testify from 1.7.3 to 1.7.4 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1384](https://togithub.com/spf13/viper/pull/1384) - build(deps): bump mheap/github-action-required-labels from 1 to 2 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1383](https://togithub.com/spf13/viper/pull/1383) - build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.8.0 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1395](https://togithub.com/spf13/viper/pull/1395) - build(deps): bump github.com/subosito/gotenv from 1.4.0 to 1.4.1 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1420](https://togithub.com/spf13/viper/pull/1420) - build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.2 to 2.0.5 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1422](https://togithub.com/spf13/viper/pull/1422) - build(deps): bump gopkg.in/ini.v1 from 1.66.4 to 1.67.0 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/spf13/viper/pull/1412](https://togithub.com/spf13/viper/pull/1412) #### New Contributors - [@mjmaisey](https://togithub.com/mjmaisey) made their first contribution in [https://github.com/spf13/viper/pull/1373](https://togithub.com/spf13/viper/pull/1373) - [@HurSungYun](https://togithub.com/HurSungYun) made their first contribution in [https://github.com/spf13/viper/pull/1393](https://togithub.com/spf13/viper/pull/1393) - [@franklinkim](https://togithub.com/franklinkim) made their first contribution in [https://github.com/spf13/viper/pull/1371](https://togithub.com/spf13/viper/pull/1371) - [@awrichar](https://togithub.com/awrichar) made their first contribution in [https://github.com/spf13/viper/pull/1387](https://togithub.com/spf13/viper/pull/1387) - [@oxisto](https://togithub.com/oxisto) made their first contribution in [https://github.com/spf13/viper/pull/1405](https://togithub.com/spf13/viper/pull/1405) - [@bcrochet](https://togithub.com/bcrochet) made their first contribution in [https://github.com/spf13/viper/pull/1414](https://togithub.com/spf13/viper/pull/1414) **Full Changelog**: https://github.com/spf13/viper/compare/v1.12.0...v1.13.0Configuration
📅 Schedule: 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.