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

Function processFileInput

packages/effect/src/unstable/cli/Prompt.ts:2386–2392  ·  view source on GitHub ↗
(input: string, state: FileState)

Source from the content-addressed store, hash-verified

2384const processFileClear = (state: FileState) => Effect.succeed(Action.NextFrame({ state: updateFileState(state, "") }))
2385
2386const processFileInput = (input: string, state: FileState) => {
2387 if (input.length === 0) {
2388 return Effect.succeed(Action.Beep())
2389 }
2390 const query = state.query + input
2391 return Effect.succeed(Action.NextFrame({ state: updateFileState(state, query) }))
2392}
2393
2394const processSelection = Effect.fnUntraced(function*(state: FileState, options: FileOptionsReq) {
2395 if (state.files.length === 0) {

Callers 1

handleFileProcessFunction · 0.85

Calls 2

updateFileStateFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected