SelectPromptConfig
Single-selection prompt — maps to enum flags or any flag with choices. Part of PromptConfig.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/schema/prompt.ts - Source link:
packages/dreamcli/src/core/schema/prompt.ts:55
Signatures
ts
interface SelectPromptConfig extends PromptConfigBase {}Members
Properties
choices
Available choices. When omitted for enum flags, the enum values from the flag schema are used automatically.
ts
choices?: readonly SelectChoice[];kind
Discriminator identifying this as a single-selection prompt.
ts
kind: "select";message
The question displayed to the user.
ts
message: string;