index.js 471 B

12345678910111213141516171819
  1. 'use strict';
  2. const path = require('path');
  3. const Command = require('./lib/command');
  4. class EggScripts extends Command {
  5. constructor(rawArgv) {
  6. super(rawArgv);
  7. this.usage = 'Usage: egg-scripts [command] [options]';
  8. // load directory
  9. this.load(path.join(__dirname, 'lib/cmd'));
  10. }
  11. }
  12. module.exports = exports = EggScripts;
  13. exports.Command = Command;
  14. exports.StartCommand = require('./lib/cmd/start');
  15. exports.StopCommand = require('./lib/cmd/stop');