From 2302d943917e44fb620890f3b888345aa779af69 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Mon, 6 Mar 2017 12:43:57 +0100 Subject: [PATCH] [enh] Allow commands to call sub-commands --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 04d2161cb..711bcd5a1 100644 --- a/index.js +++ b/index.js @@ -222,7 +222,7 @@ function Stack(dependencies) { } // First possible class of commands: post-config if (command.onConfiguredExecute) { - return yield command.onConfiguredExecute(server, conf, program, params, wizardTasks); + return yield command.onConfiguredExecute(server, conf, program, params, wizardTasks, that); } // Second possible class of commands: post-service yield server.initDAL(); @@ -284,7 +284,7 @@ function Stack(dependencies) { // for (const module of streams.process) module.unpipe(); // // Stop reading from global PROCESS // PROCESS.unpipe(); - })); + }), that); } catch (e) { server.disconnect(); throw e; -- GitLab