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 @marckhouzam #1003
- Support for case-insensitive command names: @YuviGold #1802
- Expose
ValidateRequiredFlagsandValidateFlagGroups: @skeetwu #1760 - Add
--versionflag to help output: @fnickels #1707 - Add
--helpand--versionflag in completions: @marckhouzam #1813 - Add
OnFinalizemethod: @yann-soubeyrand #1788 - Allow user to add completion for powershell alias: @marckhouzam #1621
- Make
InitDefaultcompletionCmdpublic: @gssbzn #1467