(stream: WslCommandLine["stream"], chunk: string)
| 77 | const stderrDecoder = createOutputDecoder() |
| 78 | |
| 79 | const append = (stream: WslCommandLine["stream"], chunk: string) => { |
| 80 | if (!chunk) return |
| 81 | if (stream === "stdout") { |
| 82 | stdout += chunk |
| 83 | return |
| 84 | } |
| 85 | stderr += chunk |
| 86 | } |
| 87 | |
| 88 | child.stdout.on("data", (chunk: Buffer) => { |
| 89 | append("stdout", stdoutDecoder.decode(chunk)) |