#!/usr/bin/env node // const { Command } = require('commander'); // (normal include) const { Command } = require('../'); // include commander in git clone of commander repo const program = new Command(); program .name('deploy') .version('0.0.1') .option('-c, --config ', 'set config path', './deploy.conf'); program .command('setup [env]') .description('run setup commands for all envs') .option('-s, --setup_mode ', 'Which setup mode to use', 'normal') .action((env, options) => { env = env || 'all'; console.log('read config from %s', program.opts().config); console.log('setup for %s env(s) with %s mode', env, options.setup_mode); }); program .command('exec