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

Function autoCompleteCursor

packages/effect/src/cli/Prompt.ts:3318–3319  ·  view source on GitHub ↗
(state: AutoCompleteState)

Source from the content-addressed store, hash-verified

3316}
3317
3318const autoCompleteCursor = (state: AutoCompleteState) =>
3319 Option.getOrElse(Arr.findFirstIndex(state.filtered, (index) => index === state.index), () => 0)
3320
3321const renderSelectOutput = <A>(
3322 leadingSymbol: string,

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected