TenantAtlas/apps/platform/.pnpm-store/v10/files/18/0b9d18125cc1620e41df6e9f2502306d34be2e4f7a340f0d4d46b6ca4c0374b1871cdde507c026650e8ba6b19aee77f23f85930f7551be4db1132a263c8385
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

20 lines
530 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogExit = void 0;
/**
* Logs the exit code/signal of commands.
*/
class LogExit {
logger;
constructor({ logger }) {
this.logger = logger;
}
handle(commands) {
commands.forEach((command) => command.close.subscribe(({ exitCode }) => {
this.logger.logCommandEvent(`${command.command} exited with code ${exitCode}`, command);
}));
return { commands };
}
}
exports.LogExit = LogExit;