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

Function renderAutoCompleteOutput

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

Source from the content-addressed store, hash-verified

3111}
3112
3113const renderAutoCompleteOutput = <A>(
3114 state: AutoCompleteState,
3115 leadingSymbol: string,
3116 trailingSymbol: string,
3117 options: AutoCompleteOptionsReq<A>,
3118 renderOptions?: RenderOptions | undefined
3119) => {
3120 const filter = renderAutoCompleteFilter(state, options, renderOptions)
3121 return renderPrompt(filter, options.message, leadingSymbol, trailingSymbol, renderOptions)
3122}
3123
3124const renderChoicePrefix = <A>(
3125 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