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

Function handleFileRender

packages/effect/src/unstable/cli/Prompt.ts:2344–2355  ·  view source on GitHub ↗
(options: FileOptionsReq)

Source from the content-addressed store, hash-verified

2342})
2343
2344const handleFileRender = (options: FileOptionsReq) => {
2345 return (
2346 state: FileState,
2347 action: Action<FileState, string>
2348 ): Effect.Effect<string, never, Path.Path | FileSystem.FileSystem> => {
2349 return Action.$match(action, {
2350 Beep: () => Effect.succeed(renderBeep),
2351 NextFrame: ({ state }) => renderFileNextFrame(state, options),
2352 Submit: ({ value }) => renderFileSubmission(state, value, options)
2353 })
2354 }
2355}
2356
2357const processFileCursorUp = (state: FileState) => {
2358 if (state.files.length === 0) {

Callers 1

fileFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected