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

newapi: do not automatically print menu #41

Open
timoxley opened this issue Feb 18, 2014 · 2 comments
Open

newapi: do not automatically print menu #41

timoxley opened this issue Feb 18, 2014 · 2 comments

Comments

@timoxley
Copy link
Contributor

Would like to be able to require('some-workshopper') and do some magic.

This would mean the 'default' workshopper file in a workshop would go from:

workshopper(config) // automatically prints menu

to:

var workshop = workshopper(config)
module.exports = workshop
if (process.main) workshop.start() // only auto-prints if run from cmdline
@rvagg
Copy link
Contributor

rvagg commented Feb 18, 2014

I think I had this in the very first version but the couldn't think of a reason to need an extra call to do something that would always be done.

If you have a good reason then go for it before 1.0 is final.

@martinheidegger
Copy link
Contributor

How about an option autoStart: false that does not start the workshopper immediately?

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

3 participants