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) {
}
// 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment