Skip to content
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

alternate loop re-run determination #2

Open
3 tasks
SEAPUNK opened this issue Mar 25, 2016 · 0 comments
Open
3 tasks

alternate loop re-run determination #2

SEAPUNK opened this issue Mar 25, 2016 · 0 comments

Comments

@SEAPUNK
Copy link
Owner

SEAPUNK commented Mar 25, 2016

Using keypresses is sloppy and causes problems.

Sometime in the next version, we will want to add a "callback" function that has the return value (or the error), and a function that you can use as a "remote control": Call with "true" to rerun the loop, and "false" to stop the loop and continue execution.

It will take care of all caveats, except for the internal module state one.

That, and make hotato usable in production (with reservations).

  • Add callback option, which will disable logging to console, and using stdin.
  • Add to README.
  • semver-major Require an explicit mode in the arguments, so we don't have to default to console.log()/keypress.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant