MCPcopy Index your code
hub / github.com/Effect-TS/effect / processCursorRight

Function processCursorRight

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

Source from the content-addressed store, hash-verified

175}
176
177function processCursorRight(state: State) {
178 const nextPart = state.dateParts[state.cursor].nextPart()
179 return Option.match(nextPart, {
180 onNone: () => Action.Beep(),
181 onSome: (next) =>
182 Action.NextFrame({
183 state: {
184 ...state,
185 typed: "",
186 cursor: state.dateParts.indexOf(next)
187 }
188 })
189 })
190}
191
192function processNext(state: State) {
193 const nextPart = state.dateParts[state.cursor].nextPart()

Callers 1

handleProcessFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…