Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
finally, a task runner for insect people
JavaScript PogoScript
tag: v0.0.7

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
test
.gitignore
README.md
index.pogo
package.json
qo.pogo

README.md

qo

A task runner for insect people. And for people who use pogoscript.

install

npm install qo

how to use

Write a file qo.pogo:

task 'hi'
    console.log 'hi!'

Then

# qo hi
hi!

named arguments

task 'hi' @(args)
    console.log "hi #(args.name)"

Then

# qo hi --name jack
hi jack

lists of arguments

task 'hi' @(args)
    console.log "hi #(args.join ', ')"

Then

# qo hi jack jill jesse
hi jack, jill, jesse

asynchrony

Inevitably your tasks will need to be asynchronous.

ncp = require 'ncp'

task 'copy'
    ncp 'original.txt' 'copy.txt'!
    console.log 'all done'

Then

# qo copy
all done

task descriptions

task 'hi' (desc: 'says hi')
    console.log 'hi'

Then

# qo
tasks:

    hi, says hi

pogoscript

qo uses pogoscript because it does asynchronous stuff very nicely. Learn more about pogoscript from pogoscript's cheatsheet.

Something went wrong with that request. Please try again.