1 | #!/usr/bin/env node
|
2 | // vim: set ft=javascript:
|
3 | 'use strict'
|
4 |
|
5 | var program = require('commander')
|
6 | var pkg = require('../package.json')
|
7 |
|
8 | program
|
9 | .version(pkg.version)
|
10 | .command('init', 'Initalize the migrations tool in a project')
|
11 | .command('list', 'List migrations and their status')
|
12 | .command('create [name]', 'Create a new migration')
|
13 | .command('up [name]', 'Migrate up to a give migration', {isDefault: true})
|
14 | .command('down [name]', 'Migrate down to a given migration')
|
15 | .parse(process.argv)
|