MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / #dataHandler

Method #dataHandler

src/utils/ShellCommand.ts:82–90  ·  view source on GitHub ↗
(data: Buffer | string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

writeStderrMethod · 0.80
writeStdoutMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected