(
commands: string[],
opts: { logger: Logger.Instance; cwd: string },
)
| 279 | } |
| 280 | |
| 281 | async function runCommands( |
| 282 | commands: string[], |
| 283 | opts: { logger: Logger.Instance; cwd: string }, |
| 284 | ) { |
| 285 | const results = []; |
| 286 | |
| 287 | for (const command of commands) { |
| 288 | opts.logger.log(command); |
| 289 | const result = await runCommand(command, opts.cwd); |
| 290 | opts.logger.log(...formatExecutionForLog(result).split("\n")); |
| 291 | results.push(result); |
| 292 | } |
| 293 | |
| 294 | return results; |
| 295 | } |
| 296 | |
| 297 | async function runCommand(command: string, cwd: string) { |
| 298 | const COMMAND_TIMEOUT_MS = 5 * 60 * 1000; |
no test coverage detected