(data: Buffer | string)
| 80 | } |
| 81 | |
| 82 | #dataHandler(data: Buffer | string): void { |
| 83 | const str = typeof data === 'string' ? data : data.toString() |
| 84 | |
| 85 | if (this.#isStderr) { |
| 86 | this.#taskOutput!.writeStderr(str) |
| 87 | } else { |
| 88 | this.#taskOutput!.writeStdout(str) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | cleanup(): void { |
| 93 | if (this.#isCleanedUp) { |
nothing calls this directly
no test coverage detected