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

Function basePrompt

packages/cli/src/internal/prompt/text.ts:299–315  ·  view source on GitHub ↗
(
  options: Prompt.Prompt.TextOptions,
  type: Options["type"]
)

Source from the content-addressed store, hash-verified

297}
298
299function basePrompt(
300 options: Prompt.Prompt.TextOptions,
301 type: Options["type"]
302): Prompt.Prompt<string> {
303 const opts: Options = {
304 default: "",
305 type,
306 validate: Effect.succeed,
307 ...options
308 }
309
310 return InternalPrompt.custom(initialState, {
311 render: handleRender(opts),
312 process: handleProcess(opts),
313 clear: handleClear(opts)
314 })
315}
316
317/** @internal */
318export const hidden = (

Callers 3

hiddenFunction · 0.85
passwordFunction · 0.85
textFunction · 0.85

Calls 3

handleRenderFunction · 0.70
handleProcessFunction · 0.70
handleClearFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…