dthree / vorpal

Node's framework for interactive CLIs

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support the init method of a mode command preventing the mode being entered

Hexxeh opened this issue · comments

In the case where my init method on a mode command performs some checks to determine whether entering the mode should be allowed, it doesn't appear to be possible to prevent the mode being entered without calling the private exitMode method.

Is this possible? If not, consider this a feature request. 😄