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:
ExactValidArgs is deprecated (but not being removed entirely). This is abit nuanced, so checkout #1643 for further information and the updated user_guide.md on how this may affect you (and how you can take advantage of the correct behavior in the validators): @umarcor#1643
Note: Per #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! 🐍
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/spf13/cobra](https://github.com/spf13/cobra) | require | minor | `v1.5.0` -> `v1.6.0` |
---
### Release Notes
<details>
<summary>spf13/cobra</summary>
### [`v1.6.0`](https://github.com/spf13/cobra/releases/v1.6.0)
[Compare Source](https://github.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://github.com/aawsome) [@​marckhouzam](https://github.com/marckhouzam) [#​1003](https://github.com/spf13/cobra/issues/1003)
- Support for case-insensitive command names: [@​YuviGold](https://github.com/YuviGold) [#​1802](https://github.com/spf13/cobra/issues/1802)
- Expose `ValidateRequiredFlags` and `ValidateFlagGroups`: [@​skeetwu](https://github.com/skeetwu) [#​1760](https://github.com/spf13/cobra/issues/1760)
- Add `--version` flag to help output: [@​fnickels](https://github.com/fnickels) [#​1707](https://github.com/spf13/cobra/issues/1707)
- Add `--help` and `--version` flag in completions: [@​marckhouzam](https://github.com/marckhouzam) [#​1813](https://github.com/spf13/cobra/issues/1813)
- Add `OnFinalize` method: [@​yann-soubeyrand](https://github.com/yann-soubeyrand) [#​1788](https://github.com/spf13/cobra/issues/1788)
- Allow user to add completion for powershell alias: [@​marckhouzam](https://github.com/marckhouzam) [#​1621](https://github.com/spf13/cobra/issues/1621)
- Make `InitDefaultcompletionCmd` public: [@​gssbzn](https://github.com/gssbzn) [#​1467](https://github.com/spf13/cobra/issues/1467)
##### Deprecation 👎🏼
- `ExactValidArgs` is deprecated (but not being removed entirely). This is abit nuanced, so checkout [#​1643](https://github.com/spf13/cobra/issues/1643) for further information and the [updated `user_guide.md`](https://github.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://github.com/umarcor) [#​1643](https://github.com/spf13/cobra/issues/1643)
##### Bug fixes 🐛
- Fix (bash-v2) `activeHelp` length check syntax: [@​scop](https://github.com/scop) [#​1762](https://github.com/spf13/cobra/issues/1762)
- Fix correct command path in `see_also` for yaml documentation: [@​zregvart](https://github.com/zregvart) [#​1771](https://github.com/spf13/cobra/issues/1771)
- Fix showing flags that shadow parent persistent flag in child help messaging: [@​brianpursley](https://github.com/brianpursley) [#​1776](https://github.com/spf13/cobra/issues/1776)
##### Dependencies 🗳️
- Upgrade to use `gopkg.in/yaml.v3`: [@​tklauser](https://github.com/tklauser) [#​1766](https://github.com/spf13/cobra/issues/1766)
##### Testing 🤔
- Test on Golang 1.19: [@​umarcor](https://github.com/umarcor) & [@​jpmcb](https://github.com/jpmcb) [#​1782](https://github.com/spf13/cobra/issues/1782)
- Renamed powershell completion tests: [@​marckhouzam](https://github.com/marckhouzam) [#​1803](https://github.com/spf13/cobra/issues/1803)
- Use `action/setup-go` cache: [@​umarcor](https://github.com/umarcor) [#​1783](https://github.com/spf13/cobra/issues/1783)
- Add `workflow_dispatch` to CI actions: [@​umarcor](https://github.com/umarcor) [#​1387](https://github.com/spf13/cobra/issues/1387)
- Add minimum GitHub token permissions for workflows: [@​varunsh-coder](https://github.com/varunsh-coder) [#​1792](https://github.com/spf13/cobra/issues/1792)
##### Docs ✏️
- Fixup spelling for GitHub CLI: [@​eltociear](https://github.com/eltociear) [#​1744](https://github.com/spf13/cobra/issues/1744)
- Clarify `SetContext` documentation: [@​katexochen](https://github.com/katexochen) [#​1748](https://github.com/spf13/cobra/issues/1748)
- Instruct user to `go install` for binary: [@​marckhouzam](https://github.com/marckhouzam) [#​1726](https://github.com/spf13/cobra/issues/1726)
- User guide cleanup: [@​marckhouzam](https://github.com/marckhouzam) [#​1656](https://github.com/spf13/cobra/issues/1656)
- Document option to hide the default completion command: [@​marckhouzam](https://github.com/marckhouzam) [#​1779](https://github.com/spf13/cobra/issues/1779)
##### Misc 💭
- Add KubeVirt, CloudQuery, Cilium, Okteto, Zitadel, Allero to projects using cobra: [@​maiqueb](https://github.com/maiqueb) [#​1741](https://github.com/spf13/cobra/issues/1741), [@​yevgenypats](https://github.com/yevgenypats) [#​1742](https://github.com/spf13/cobra/issues/1742), [@​tklauser](https://github.com/tklauser) [#​1745](https://github.com/spf13/cobra/issues/1745), [@​jLopezbarb](https://github.com/jLopezbarb) [#​1759](https://github.com/spf13/cobra/issues/1759), [@​fforootd](https://github.com/fforootd) [#​1772](https://github.com/spf13/cobra/issues/1772), [@​dimabru](https://github.com/dimabru) [#​1819](https://github.com/spf13/cobra/issues/1819)
- Use correct stale action `exempt` yaml keys: [@​jpmcb](https://github.com/jpmcb) [#​1800](https://github.com/spf13/cobra/issues/1800)
- Add missing license headers: [@​umarcor](https://github.com/umarcor) [#​1809](https://github.com/spf13/cobra/issues/1809)
*Note:* Per [#​1804](https://github.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
</details>
---
### Configuration
📅 **Schedule**: At any time (no schedule defined).
🚦 **Automerge**: Disabled due to failing status checks.
♻ **Rebasing**: Whenever PR is behind base branch, 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://github.com/renovatebot/renovate).
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: go.sum
Command failed: docker pull docker.io/renovate/go:1.19.2
write /var/lib/docker/tmp/GetImageBlob1568992987: no space left on device
### ⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
##### File name: go.sum
```
Command failed: docker pull docker.io/renovate/go:1.19.2
write /var/lib/docker/tmp/GetImageBlob1568992987: no space left on device
```
CSRBot
changed title from chore(deps): update module github.com/spf13/cobra to v1.6.0 to chore(deps): update module github.com/spf13/cobra to v1.6.0 - autoclosed2022-10-11 21:51:36 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
v1.5.0->v1.6.0Release Notes
spf13/cobra
v1.6.0Compare Source
Summer 2022 Release
Some exciting changes make their way to Cobra! Command completions continue to get better and better (including adding
--helpand--versionautomatic flags to the completions list). Grouping is now possible in your help output as well! And you can now use theOnFinalizemethod to cleanup things when all "work" is done. Checkout the full changelog below:Features 🌠
ValidateRequiredFlagsandValidateFlagGroups: @skeetwu #1760--versionflag to help output: @fnickels #1707--helpand--versionflag in completions: @marckhouzam #1813OnFinalizemethod: @yann-soubeyrand #1788InitDefaultcompletionCmdpublic: @gssbzn #1467Deprecation 👎🏼
ExactValidArgsis deprecated (but not being removed entirely). This is abit nuanced, so checkout #1643 for further information and the updateduser_guide.mdon how this may affect you (and how you can take advantage of the correct behavior in the validators): @umarcor #1643Bug fixes 🐛
activeHelplength check syntax: @scop #1762see_alsofor yaml documentation: @zregvart #1771Dependencies 🗳️
gopkg.in/yaml.v3: @tklauser #1766Testing 🤔
action/setup-gocache: @umarcor #1783workflow_dispatchto CI actions: @umarcor #1387Docs ✏️
SetContextdocumentation: @katexochen #1748go installfor binary: @marckhouzam #1726Misc 💭
exemptyaml keys: @jpmcb #1800Note: Per #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/cobraGitHub 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
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled due to failing status checks.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: go.sum
chore(deps): update module github.com/spf13/cobra to v1.6.0to chore(deps): update module github.com/spf13/cobra to v1.6.0 - autoclosedPull request closed