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

Function renderTextOutput

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

Source from the content-addressed store, hash-verified

3552}
3553
3554const renderTextOutput = (
3555 nextState: TextState,
3556 leadingSymbol: string,
3557 trailingSymbol: string,
3558 options: TextOptionsReq,
3559 renderOptions?: RenderOptions | undefined,
3560 submitted: boolean = false
3561) => {
3562 const value = renderTextInput(nextState, options, submitted, renderOptions)
3563 return renderPrompt(value, options.message, leadingSymbol, trailingSymbol, renderOptions)
3564}
3565
3566const renderTextNextFrame = Effect.fnUntraced(function*(state: TextState, options: TextOptionsReq) {
3567 const figures = yield* platformFigures

Callers 1

Prompt.tsFile · 0.85

Calls 2

renderTextInputFunction · 0.85
renderPromptFunction · 0.85

Tested by

no test coverage detected