diff --git a/dist/index.js b/dist/index.js index 4d14878b..4312a4d4 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 07ade40e..3d986f49 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/cloud-runner/services/core/cloud-runner-system.ts b/src/model/cloud-runner/services/core/cloud-runner-system.ts index 0f80e8ad..97cdfc49 100644 --- a/src/model/cloud-runner/services/core/cloud-runner-system.ts +++ b/src/model/cloud-runner/services/core/cloud-runner-system.ts @@ -16,7 +16,13 @@ export class CloudRunnerSystem { }); } - public static async Run(command: string, suppressError = false, suppressLogs = false) { + public static async Run( + command: string, + suppressError = false, + suppressLogs = false, + // eslint-disable-next-line no-unused-vars + outputCallback?: (output: string) => void, + ) { for (const element of command.split(`\n`)) { if (!suppressLogs) { RemoteClientLogger.log(element); @@ -38,6 +44,9 @@ export class CloudRunnerSystem { output += diagnosticOutput; } const outputChunk = `${stdout}`; + if (outputCallback) { + outputCallback(outputChunk); + } output += outputChunk; }); child.on('close', (code) => {