(out: DevOutput, line: string)
| 99 | } |
| 100 | |
| 101 | function emit(out: DevOutput, line: string): void { |
| 102 | if (out.onStderr) { |
| 103 | out.onStderr(Buffer.from(`${line}\n`)); |
| 104 | } else { |
| 105 | process.stderr.write(`${line}\n`); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Run a command to completion, forwarding its stdout/stderr to the dev output |
no test coverage detected