#!/usr/bin/env node // vim: set ft=javascript: 'use strict' const program = require('commander') const 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 given migration', { isDefault: true }) .command('down [name]', 'Migrate down to a given migration') .parse(process.argv)