#!/usr/bin/env node

const program = require('commander');

// We're requiring this here so it'll setup some promise rejection hooks to log
// out.
require('./util');

// Setup the program.
program
  .command('serve', 'serve the application')
  .command('db', 'run database commands')
  .command('settings', 'interact with the application settings')
  .command('assets', 'interact with assets')
  .command('setup', 'setup the application')
  .command('jobs', 'work with the job queues')
  .command('token', 'work with the access tokens')
  .command('users', 'work with the application auth')
  .command('migration', 'provides utilities for migrating the database')
  .command(
    'plugins',
    'provides utilities for interacting with the plugin system'
  )
  .parse(process.argv);
