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

Function handleRender

packages/cli/src/internal/prompt/file.ts:236–244  ·  view source on GitHub ↗
(options: FileOptions)

Source from the content-addressed store, hash-verified

234}
235
236function handleRender(options: FileOptions) {
237 return (_: State, action: Prompt.Prompt.Action<State, string>) => {
238 return Action.$match(action, {
239 Beep: () => Effect.succeed(renderBeep),
240 NextFrame: ({ state }) => renderNextFrame(state, options),
241 Submit: ({ value }) => renderSubmission(value, options)
242 })
243 }
244}
245
246function processCursorUp(state: State) {
247 const cursor = state.cursor - 1

Callers 1

fileFunction · 0.70

Calls 2

renderNextFrameFunction · 0.70
renderSubmissionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…