-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt functions #44
Comments
Relates to #45 |
I like the API of commander and dislike this one: https://github.com/flatiron/prompt |
After evaluating, I decided to implement a separate nodejs module for this. Check it out: https://github.com/IndigoUnited/node-promptly |
Ok everything is done. Under the hood, it uses isaac's read node module. |
@marcooliveira I'm going to integrate promptly in automaton. |
Very nice! I like the module, simple as it should be ;) Good question. Having prompts indent like logging does, can eventually put the prompt in an awkward position. Let's take a practical look at this. I think most people will only depend on user input on top tasks. Even if they read values from inner tasks, I don't think it's a must to have them indented. If this proves to be an annoyance, we can always indent later. This also makes automaton more efficient. |
Btw I've added this in the context, but since we don't make indentation, it is context independent. |
It would be useful to provide the user with prompt functions in the task context, so he can request information to the user, if necessary. We could provide something like
ctx.prompt
, with a few functions.Check https://github.com/visionmedia/commander.js/#promptmsg-fn for examples of these functions.
The text was updated successfully, but these errors were encountered: