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

Function processMultiSelectCursorDown

packages/effect/src/unstable/cli/Prompt.ts:2648–2651  ·  view source on GitHub ↗
(state: MultiSelectState, totalChoices: number)

Source from the content-addressed store, hash-verified

2646}
2647
2648const processMultiSelectCursorDown = (state: MultiSelectState, totalChoices: number) => {
2649 const newIndex = (state.index + 1) % totalChoices
2650 return Effect.succeed(Action.NextFrame({ state: { ...state, index: newIndex } }))
2651}
2652
2653const processSpace = <A>(
2654 state: MultiSelectState,

Callers 1

handleMultiSelectProcessFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected