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

Function processSelectNext

packages/effect/src/cli/Prompt.ts:3545–3547  ·  view source on GitHub ↗
(state: SelectState, choices: SelectOptionsReq<A>["choices"])

Source from the content-addressed store, hash-verified

3543}
3544
3545const processSelectNext = <A>(state: SelectState, choices: SelectOptionsReq<A>["choices"]) => {
3546 return Effect.succeed(Action.NextFrame({ state: (state + 1) % choices.length }))
3547}
3548
3549const processAutoCompleteCursorUp = (state: AutoCompleteState) => {
3550 if (state.filtered.length === 0) {

Callers 1

handleSelectProcessFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected