concurrently
Version:
Run commands concurrently
21 lines (20 loc) • 606 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogOutput = void 0;
/**
* Logs the stdout and stderr output of commands.
*/
class LogOutput {
logger;
constructor({ logger }) {
this.logger = logger;
}
handle(commands) {
commands.forEach((command) => {
command.stdout.subscribe((text) => this.logger.logCommandText(text.toString(), command));
command.stderr.subscribe((text) => this.logger.logCommandText(text.toString(), command));
});
return { commands };
}
}
exports.LogOutput = LogOutput;
;