Plugin Command Module

This commit is contained in:
Subramanian Venkatesan 2018-09-09 23:22:57 +05:30
parent 74f0d05ca0
commit c8e812e638
1 changed files with 6 additions and 5 deletions

View File

@ -1,15 +1,16 @@
class PluginCommand {
constructor(embark) {
console.log(embark);
//this.embark = embark;
//this.registerCommands();
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)
match: () => cmd === 'plugin',
process: (cb) => {
//self.events.request('start-webserver', cb)
}
};
});
}