Sourced from github.com/spf13/cobra's releases.
v1.6.1
Bug fixes 🐛
- Fixes a panic when
AddGroup
isn't called beforeAddCommand(my-sub-command)
is executed. This can happen within more complex cobra file structures that have many differentinit
s to be executed. Now, the check for groups has been moved toExecuteC
and provides more flexibility when working with grouped commands -@marckhouzam
(and shout out to@aawsome
,@andig
and@KINGSABRI
for a deep investigation into this! 👏🏼)
b43be99
Check for group presence after full initialization (#1839)
(#1841)