embark-area-51/lib/modules/plugin_cmd/index.js

20 lines
413 B
JavaScript

class PluginCommand {
constructor(embark) {
this.embark = embark;
this.registerCommands();
}
registerCommands() {
const self = this;
self.embark.registerConsoleCommand((cmd, _options) => {
return {
match: () => cmd === 'plugin',
process: (cb) => {
//self.events.request('start-webserver', cb)
}
};
});
}
}
module.exports = PluginCommand;