index.js 471 Bytes
'use strict';

const path = require('path');
const Command = require('./lib/command');

class EggScripts extends Command {
  constructor(rawArgv) {
    super(rawArgv);
    this.usage = 'Usage: egg-scripts [command] [options]';

    // load directory
    this.load(path.join(__dirname, 'lib/cmd'));
  }
}

module.exports = exports = EggScripts;
exports.Command = Command;
exports.StartCommand = require('./lib/cmd/start');
exports.StopCommand = require('./lib/cmd/stop');