MCPcopy Create free account
hub / github.com/cli/cli / write

Method write

evals/src/suites/events/smoke-protocol.ts:130–137  ·  view source on GitHub ↗
(chunk: string)

Source from the content-addressed store, hash-verified

128 private readonly waiters: Array<() => void> = [];
129
130 write(chunk: string): void {
131 this.text += chunk;
132 if (!this.ready && this.text.includes("Listening for events.\n")) {
133 this.ready = true;
134 for (const resolve of this.waiters) resolve();
135 this.waiters.length = 0;
136 }
137 }
138
139 async wait(timeoutMs: number): Promise<void> {
140 if (this.ready) return;

Callers 2

mainFunction · 0.95
smoke.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected