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

How to find the parent of subcommand? #111

Open
vshesha opened this issue Feb 15, 2019 · 1 comment
Open

How to find the parent of subcommand? #111

vshesha opened this issue Feb 15, 2019 · 1 comment

Comments

@vshesha
Copy link

vshesha commented Feb 15, 2019

In case of subcommands, how to find the parent command, using the ishell context of the sub command?

For example:
Say mycmd and newcmd has 2 subcommands:

mycmd help 
add del

newcmd help
add del

The handler for add receives the ishell.Context. How to figure if the parent of add is mycmd or newcmd?

@bharathshetty4
Copy link

+1. Couldn't find way to get it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants