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

Function processNext

packages/cli/src/internal/prompt/date.ts:192–201  ·  view source on GitHub ↗
(state: State)

Source from the content-addressed store, hash-verified

190}
191
192function processNext(state: State) {
193 const nextPart = state.dateParts[state.cursor].nextPart()
194 const cursor = Option.match(nextPart, {
195 onNone: () => state.dateParts.findIndex((part) => !part.isToken()),
196 onSome: (next) => state.dateParts.indexOf(next)
197 })
198 return Action.NextFrame({
199 state: { ...state, cursor }
200 })
201}
202
203function defaultProcessor(value: string, state: State) {
204 if (/\d/.test(value)) {

Callers 1

handleProcessFunction · 0.70

Calls 1

isTokenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…