From c8e812e6389123aeb5855a826312b4b1360cd924 Mon Sep 17 00:00:00 2001 From: Subramanian Venkatesan Date: Sun, 9 Sep 2018 23:22:57 +0530 Subject: [PATCH] Plugin Command Module --- lib/modules/plugin_cmd/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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) + } }; }); }