ishell icon indicating copy to clipboard operation
ishell copied to clipboard

How to find the parent of subcommand?

Open vshesha opened this issue 6 years ago • 1 comments

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?

vshesha avatar Feb 15 '19 17:02 vshesha

+1. Couldn't find way to get it

bharathshetty4 avatar Jan 02 '20 15:01 bharathshetty4