MCPcopy Create free account
hub / github.com/Effect-TS/effect / inputText

Function inputText

packages/effect/test/unstable/cli/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(queue, inputs).pipe(Effect.asVoid)
51 }
52
53 const inputKey: MockTerminal["inputKey"] = (
54 key: string,

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected