function run() {
  var args = process.argv.slice(2);
  if (args.length === 0) {
    printUsage();
  }

  var setupEnvScript = /^win/.test(process.platform)
    ? 'setup_env.bat'
    : 'setup_env.sh';
  childProcess.execFileSync(path.join(__dirname, setupEnvScript));

  var command = commands[args[0]];
  if (!command) {
    console.error('Command `%s` unrecognized', args[0]);
    printUsage();
    return;
  }

  command[0](args, Config.get(__dirname, defaultConfig)).done();
}
/**
 * Parses the command line and runs a command of the CLI.
 */
Parses the command line and runs a command of the CLI.
Parses the command line and runs a command of the CLI .
function run() {
  var args = process.argv.slice(2);
  if (args.length === 0) {
    printUsage();
  }
  var setupEnvScript = /^win/.test(process.platform)
    ? 'setup_env.bat'
    : 'setup_env.sh';
  childProcess.execFileSync(path.join(__dirname, setupEnvScript));
  var command = commands[args[0]];
  if (!command) {
    console.error('Command `%s` unrecognized', args[0]);
    printUsage();
    return;
  }
  command[0](args, Config.get(__dirname, defaultConfig)).done();
}
function run ( ) { var args = process . argv . slice ( 2 ) ; if ( args . length === 0 ) { printUsage ( ) ; } var setupEnvScript = / ^win / . test ( process . platform ) ? 'setup_env.bat' : 'setup_env.sh' ; childProcess . execFileSync ( path . join ( __dirname , setupEnvScript ) ) ; var command = commands [ args [ 0 ] ] ; if ( ! command ) { console . error ( 'Command `%s` unrecognized' , args [ 0 ] ) ; printUsage ( ) ; return ; } command [ 0 ] ( args , Config . get ( __dirname , defaultConfig ) ) . done ( ) ; }
Parses the command line and runs a command of the CLI.
Parses the command line and runs a command of the CLI .