dthree / vorpal

Node's framework for interactive CLIs

Home Page:http://vorpal.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Context dependet commands

asindico opened this issue · comments

I am working on a command line application based on Vorpal.

Is there a way to allow (and list in the help) commands depending on a context.

For instance I might want to have the possibility to execute commands A and B on context 1 and commands C and D on context 2. I would then have a command to switch context which should always be valid.