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

Function processFileInput

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

Source from the content-addressed store, hash-verified

2585const processFileClear = (state: FileState) => Effect.succeed(Action.NextFrame({ state: updateFileState(state, "") }))
2586
2587const processFileInput = (input: string, state: FileState) => {
2588 if (input.length === 0) {
2589 return Effect.succeed(Action.Beep())
2590 }
2591 const query = state.query + input
2592 return Effect.succeed(Action.NextFrame({ state: updateFileState(state, query) }))
2593}
2594
2595const processSelection = Effect.fnUntraced(function*(state: FileState, options: FileOptionsReq) {
2596 if (state.files.length === 0) {

Callers 1

handleFileProcessFunction · 0.85

Calls 2

updateFileStateFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected