Add a VisitSubCommands function #1397
Labels
area/lib
Methods and functions that exist in the cobra library and consumed by users
kind/feature
A feature request for cobra; new or enhanced behavior
lifecycle/needs-pr
Ready for a PR from the community
It would be useful if a
VisitSubCommands
/VisitChildren
function similar to theVisitParents
function could be added for*Command
.Here's a pointer to
VisitParents
: https://github.com/spf13/cobra/blob/v1.1.3/command.go#L744The text was updated successfully, but these errors were encountered: