dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Context dependet commands #305

Open asindico opened 6 years ago

asindico commented 6 years ago

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.