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

Function processDateCursorLeft

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

Source from the content-addressed store, hash-verified

1798}
1799
1800const processDateCursorLeft = (state: DateState) => {
1801 const previous = state.dateParts[state.cursor].previousPart()
1802 if (Option.isSome(previous)) {
1803 return Action.NextFrame({
1804 state: {
1805 ...state,
1806 typed: "",
1807 cursor: state.dateParts.indexOf(previous.value)
1808 }
1809 })
1810 }
1811 return Action.Beep()
1812}
1813
1814const processDateCursorRight = (state: DateState) => {
1815 const next = state.dateParts[state.cursor].nextPart()

Callers 1

handleDateProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected