cmd.js 373 B

123456789101112131415
  1. #!/usr/bin/env node
  2. const program = require('commander');
  3. program
  4. .command('start <env>')
  5. .description('Start the project with the given environment')
  6. .action(require('./commands/start'));
  7. program
  8. .command('stop <env>')
  9. .description('End the project with the given environment')
  10. .action(require('./commands/stop'));
  11. program.parse(process.argv);