Closed kud closed 10 years ago
Wait, I'm not sure what you're asking for here -- do you want a way to set the default task? Or are you asking how to pass CLI args to an embedded instance of Jake?
Define the default task is just naming it 'default' but i would like to call jake "--tasks" function in a task, directly via JavaScript. On 3 Jun 2014 19:43, "Matthew Eernisse" notifications@github.com wrote:
Wait, I'm not sure what you're asking for here -- do you want a way to set the default task? Or are you asking how to pass CLI args to an embedded instance of Jake?
— Reply to this email directly or view it on GitHub https://github.com/mde/jake/issues/254#issuecomment-44996841.
Ah, now I understand. Internally, the jake -T
CLI command just calls jake.showAllTaskDescriptions
. I've updated the doc here to indicate this: https://github.com/mde/jake#showing-the-list-of-tasks
Thank you very well @mde ;)
Works like a charm!
task('default', function() {
jake.showAllTaskDescriptions()
})
Even better:
task('default', jake.showAllTaskDescriptions)
Excellent. :)
https://twitter.com/_kud/status/473828507534254081
The dirty way: