'use strict';

var program;

require('colors');

program = require('commander');

program
    .option('-v, --verbose', 'Use verbose output');

program
    .command('install')
    .description('Runs the installation')
    .action(require('./lib/command/deps'));

program
    .command('run [port]')
    .description('Runs the PHP Built-in web server')
    .action(require('./lib/command/run'));

program
    .command('site_create <name>')
    .action(require('./lib/command/site/create'));

program
    .command('site_remove <name>')
    .action(require('./lib/command/site/remove'));

program
    .command('segment_create <name> ')
    .option('-cd, --config-definition', 'Use config definition instead of .yml file')
    .action(require('./lib/command/segment/create'));

program
    .command('segment_remove <name>')
    .action(require('./lib/command/segment/remove'));

program
    .command('layout_create <name>')
    .action(require('./lib/command/layout/create'));

program
    .command('layout_remove <name>')
    .action(require('./lib/command/layout/remove'));

program
    .command('lint')
    .action(require('./lib/command/lint'));

program.parse(process.argv);