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

Function renderTextOutput

packages/effect/src/cli/Prompt.ts:3816–3827  ·  view source on GitHub ↗
(
  nextState: TextState,
  leadingSymbol: string,
  trailingSymbol: string,
  options: TextOptionsReq,
  theme: Theme,
  renderOptions?: RenderOptions | undefined,
  submitted: boolean = false
)

Source from the content-addressed store, hash-verified

3814}
3815
3816const renderTextOutput = (
3817 nextState: TextState,
3818 leadingSymbol: string,
3819 trailingSymbol: string,
3820 options: TextOptionsReq,
3821 theme: Theme,
3822 renderOptions?: RenderOptions | undefined,
3823 submitted: boolean = false
3824) => {
3825 const value = renderTextInput(nextState, options, theme, submitted, renderOptions)
3826 return renderPrompt(value, options.message, leadingSymbol, trailingSymbol, theme, renderOptions)
3827}
3828
3829const renderTextNextFrame = Effect.fnUntraced(function*(state: TextState, options: TextOptionsReq) {
3830 const figures = yield* getTheme(options)

Callers 1

Prompt.tsFile · 0.85

Calls 2

renderTextInputFunction · 0.85
renderPromptFunction · 0.85

Tested by

no test coverage detected