mirror of https://github.com/embarklabs/embark.git
Plugin Command Module
This commit is contained in:
parent
74f0d05ca0
commit
c8e812e638
|
@ -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)
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue