Subramanian Venkatesan 74f0d05ca0 Plugin Command
2018-09-09 23:07:55 +05:30

19 lines
427 B
JavaScript

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