Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a VisitSubCommands function #1397

Closed
andyyang890 opened this issue May 11, 2021 · 2 comments
Closed

Add a VisitSubCommands function #1397

andyyang890 opened this issue May 11, 2021 · 2 comments
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

Comments

@andyyang890
Copy link

andyyang890 commented May 11, 2021

It would be useful if a VisitSubCommands/VisitChildren function similar to the VisitParents function could be added for *Command.

Here's a pointer to VisitParents: https://github.com/spf13/cobra/blob/v1.1.3/command.go#L744

@github-actions
Copy link

This issue is being marked as stale due to a long period of inactivity

@johnSchnake johnSchnake added kind/feature A feature request for cobra; new or enhanced behavior area/lib Methods and functions that exist in the cobra library and consumed by users lifecycle/needs-pr Ready for a PR from the community labels Mar 16, 2022
@marckhouzam
Copy link
Collaborator

Feel free to re-open if this is still of interest. This would need a PR however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants