diff --git a/lib/modules/plugin_cmd/index.js b/lib/modules/plugin_cmd/index.js index 111f5d75d..3514e2121 100644 --- a/lib/modules/plugin_cmd/index.js +++ b/lib/modules/plugin_cmd/index.js @@ -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) + } }; }); }