Skip to content
Snippets Groups Projects
Commit 2302d943 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] Allow commands to call sub-commands

parent 846fc80b
No related branches found
No related tags found
No related merge requests found
...@@ -222,7 +222,7 @@ function Stack(dependencies) { ...@@ -222,7 +222,7 @@ function Stack(dependencies) {
} }
// First possible class of commands: post-config // First possible class of commands: post-config
if (command.onConfiguredExecute) { 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 // Second possible class of commands: post-service
yield server.initDAL(); yield server.initDAL();
...@@ -284,7 +284,7 @@ function Stack(dependencies) { ...@@ -284,7 +284,7 @@ function Stack(dependencies) {
// for (const module of streams.process) module.unpipe(); // for (const module of streams.process) module.unpipe();
// // Stop reading from global PROCESS // // Stop reading from global PROCESS
// PROCESS.unpipe(); // PROCESS.unpipe();
})); }), that);
} catch (e) { } catch (e) {
server.disconnect(); server.disconnect();
throw e; throw e;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment