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

Function handleFileRender

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

Source from the content-addressed store, hash-verified

2543})
2544
2545const handleFileRender = (options: FileOptionsReq) => {
2546 return (
2547 state: FileState,
2548 action: Action<FileState, string>
2549 ): Effect.Effect<string, never, Path.Path | FileSystem.FileSystem> => {
2550 return Action.$match(action, {
2551 Beep: () => Effect.succeed(renderBeep),
2552 NextFrame: ({ state }) => renderFileNextFrame(state, options),
2553 Submit: ({ value }) => renderFileSubmission(state, value, options)
2554 })
2555 }
2556}
2557
2558const processFileCursorUp = (state: FileState) => {
2559 if (state.files.length === 0) {

Callers 1

FileFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected