MCPcopy
hub / github.com/Effect-TS/effect / inputText

Function inputText

packages/cli/test/services/MockTerminal.ts:48–51  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

46 )
47
48 const inputText: MockTerminal["inputText"] = (text: string) => {
49 const inputs = Array.map(text.split(""), (key) => toUserInput(key))
50 return queue.offerAll(inputs).pipe(Effect.asVoid)
51 }
52
53 const inputKey: MockTerminal["inputKey"] = (
54 key: string,

Callers

nothing calls this directly

Calls 5

toUserInputFunction · 0.85
splitMethod · 0.80
mapMethod · 0.65
pipeMethod · 0.65
offerAllMethod · 0.65

Tested by

no test coverage detected