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

Function processDateCursorRight

packages/effect/src/unstable/cli/Prompt.ts:1652–1664  ·  view source on GitHub ↗
(state: DateState)

Source from the content-addressed store, hash-verified

1650}
1651
1652const processDateCursorRight = (state: DateState) => {
1653 const next = state.dateParts[state.cursor].nextPart()
1654 if (Option.isSome(next)) {
1655 return Action.NextFrame({
1656 state: {
1657 ...state,
1658 typed: "",
1659 cursor: state.dateParts.indexOf(next.value)
1660 }
1661 })
1662 }
1663 return Action.Beep()
1664}
1665
1666const processDateNext = (state: DateState) => {
1667 const next = state.dateParts[state.cursor].nextPart()

Callers 1

handleDateProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected