How to find the parent of subcommand? · Issue #111 · abiosoft/ishell · GitHub
Skip to content

How to find the parent of subcommand? #111

Open

Description

@vshesha

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?

Activity

  1. bharathshetty4 commented on Jan 2, 2020

    @bharathshetty4

    +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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions