(tasks: JobTask[], logger: Logger)
| 407 | } |
| 408 | |
| 409 | function printCommandTaskOutputs(tasks: JobTask[], logger: Logger): void { |
| 410 | for (const task of tasks) { |
| 411 | if (task.operation !== 'command' || typeof task.result?.output !== 'string' || task.result.output.length === 0) { |
| 412 | continue; |
| 413 | } |
| 414 | |
| 415 | logger.info(`Task \`${task.name}\` output:\n${task.result.output}`); |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | function printFailedTaskMessages(tasks: JobTask[], logger: Logger): void { |
| 420 | for (const task of tasks.filter(task => task.status === 'error' || task.status === 'failed')) { |
no test coverage detected