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

Function renderAutoCompleteOutput

packages/effect/src/cli/Prompt.ts:3351–3361  ·  view source on GitHub ↗
(
  state: AutoCompleteState,
  leadingSymbol: string,
  trailingSymbol: string,
  options: AutoCompleteOptionsReq<A>,
  theme: Theme,
  renderOptions?: RenderOptions | undefined
)

Source from the content-addressed store, hash-verified

3349}
3350
3351const renderAutoCompleteOutput = <A>(
3352 state: AutoCompleteState,
3353 leadingSymbol: string,
3354 trailingSymbol: string,
3355 options: AutoCompleteOptionsReq<A>,
3356 theme: Theme,
3357 renderOptions?: RenderOptions | undefined
3358) => {
3359 const filter = renderAutoCompleteFilter(state, options, theme, renderOptions)
3360 return renderPrompt(filter, options.message, leadingSymbol, trailingSymbol, theme, renderOptions)
3361}
3362
3363const renderChoicePrefix = <A>(
3364 state: SelectState,

Callers 2

Prompt.tsFile · 0.85
handleAutoCompleteClearFunction · 0.85

Calls 2

renderAutoCompleteFilterFunction · 0.85
renderPromptFunction · 0.85

Tested by

no test coverage detected