finally, a task runner designed for insect people
A task runner for insect people.
npm install qo
Write a file
# qo hihi!
task'hi'console.log"hi " + optionsname"});
# qo hi --name jackhi jack
task'hi'console.log"hi " + argsjoin', ';;
# qo hi jack jill jessehi jack, jill, jesse
If you return a promise, and it's rejected, then
qo will print the error exit with
ncp = require 'ncp'
var fs = require'fs-promise';task'print'return fsreadFileargs0 'utf-8'thenconsole.logcontents;;;
# qo print some-file.txtError: ENOENT, open 'asdf'at Error (native)
task'hi' desc: 'says hi'console.log'hi';;
# qotasks:hi, says hi
You can also put descriptive arguments into the task name:
task'hi <name>' desc: 'says hi to <name>'console.log'hi ' + args0;;
# qotasks:hi <name>, says hi to <name>
you can write a
qo.pogo file too. Pogoscript happens to be very useful for writing heavily asynchronous code, and great for little scripts that get things done.