MCPcopy
hub / github.com/learnhouse/learnhouse / TextOptions

Interface TextOptions

apps/cli/src/utils/prompt.ts:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27} from '@clack/prompts'
28
29interface TextOptions {
30 message: string
31 placeholder?: string
32 defaultValue?: string
33 initialValue?: string
34 validate?: (value: string) => string | Error | undefined
35}
36
37export function text(opts: TextOptions): Promise<string | symbol> {
38 const fillValue = opts.defaultValue ?? opts.placeholder

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected