MCPcopy Index your code
hub / github.com/anomalyco/opencode / append

Function append

packages/desktop/src/main/wsl/runtime.ts:79–86  ·  view source on GitHub ↗
(stream: WslCommandLine["stream"], chunk: string)

Source from the content-addressed store, hash-verified

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))

Callers 1

runCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected