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