#!/usr/bin/env node // vim: set ft=javascript: 'use strict' var program = require('commander') var pkg = require('../package.json') program .version(pkg.version) .command('init', 'Initalize the migrations tool in a project') .command('list', 'List migrations and their status') .command('create [name]', 'Create a new migration') .command('up [name]', 'Migrate up to a give migration', {isDefault: true}) .command('down [name]', 'Migrate down to a given migration') .parse(process.argv)