1.4.0 • Published 9 years ago
qo v1.4.0
qo
A task runner for insect people.
install
npm install qohow to use
Write a file qo.js:
task('hi', function () {
console.log('hi!');
});Then
# qo hi
hi!named arguments
task('hi', function (args, options) {
console.log("hi " + options.name);
});Then
# qo hi --name jack
hi jacklists of arguments
task('hi', function (args) {
console.log("hi " + args.join(', '));
});Then
# qo hi jack jill jesse
hi jack, jill, jessepromises
If you return a promise, and it's rejected, then qo will print the error exit with 1.
var fs = require('fs-promise');
task('print', function (args) {
return fs.readFile(args[0], 'utf-8').then(function (contents) {
console.log(contents);
});
});Then
# qo print some-file.txt
Error: ENOENT, open 'some-file.txt'
at Error (native)task descriptions
task('hi', {desc: 'says hi'}, function () {
console.log('hi');
});Then
# qo
tasks:
hi, says hiYou can also put descriptive arguments into the task name:
task('hi <name>', {desc: 'says hi to <name>'}, function (args) {
console.log('hi ' + args[0]);
});Then
# qo
tasks:
hi <name>, says hi to <name>pogoscript
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.
1.4.0
9 years ago
1.3.0
10 years ago
1.2.0
10 years ago
1.1.0
11 years ago
1.0.0
11 years ago
0.3.0
11 years ago
0.2.3
11 years ago
0.2.2
11 years ago
0.2.1
12 years ago
0.1.3
12 years ago
0.1.2
12 years ago
0.2.0
12 years ago
0.1.1
12 years ago
0.1.0
12 years ago
0.0.10
12 years ago
0.0.9
12 years ago
0.0.8
12 years ago
0.0.7
12 years ago
0.0.6
12 years ago
0.0.5
12 years ago
0.0.4
12 years ago
0.0.3
12 years ago
0.0.1
12 years ago