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

Function renderNumberOutput

packages/effect/src/cli/Prompt.ts:3039–3050  ·  view source on GitHub ↗
(
  state: NumberState,
  leadingSymbol: string,
  trailingSymbol: string,
  options: IntOptionsReq,
  theme: Theme,
  renderOptions?: RenderOptions | undefined,
  submitted: boolean = false
)

Source from the content-addressed store, hash-verified

3037}
3038
3039const renderNumberOutput = (
3040 state: NumberState,
3041 leadingSymbol: string,
3042 trailingSymbol: string,
3043 options: IntOptionsReq,
3044 theme: Theme,
3045 renderOptions?: RenderOptions | undefined,
3046 submitted: boolean = false
3047) => {
3048 const value = renderNumberInput(state, submitted, theme, renderOptions)
3049 return renderPrompt(value, options.message, leadingSymbol, trailingSymbol, theme, renderOptions)
3050}
3051
3052const renderNumberNextFrame = Effect.fnUntraced(function*(state: NumberState, options: IntOptionsReq) {
3053 const figures = yield* getTheme(options)

Callers 2

handleNumberClearFunction · 0.85
Prompt.tsFile · 0.85

Calls 2

renderNumberInputFunction · 0.85
renderPromptFunction · 0.85

Tested by

no test coverage detected