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

Function processSelectNext

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

Source from the content-addressed store, hash-verified

3305}
3306
3307const processSelectNext = <A>(state: SelectState, choices: SelectOptionsReq<A>["choices"]) => {
3308 return Effect.succeed(Action.NextFrame({ state: (state + 1) % choices.length }))
3309}
3310
3311const processAutoCompleteCursorUp = (state: AutoCompleteState) => {
3312 if (state.filtered.length === 0) {

Callers 1

handleSelectProcessFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected