2018-09-09 17:37:55 +00:00
|
|
|
class PluginCommand {
|
|
|
|
constructor(embark) {
|
2018-09-09 17:52:57 +00:00
|
|
|
this.embark = embark;
|
|
|
|
this.registerCommands();
|
2018-09-09 17:37:55 +00:00
|
|
|
}
|
|
|
|
registerCommands() {
|
|
|
|
const self = this;
|
|
|
|
self.embark.registerConsoleCommand((cmd, _options) => {
|
|
|
|
return {
|
2018-09-09 17:52:57 +00:00
|
|
|
match: () => cmd === 'plugin',
|
|
|
|
process: (cb) => {
|
|
|
|
//self.events.request('start-webserver', cb)
|
|
|
|
}
|
2018-09-09 17:37:55 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = PluginCommand;
|