KeyValueFlagDefinition
Definition of a keyValue flag.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/schema/flag.ts - Source link:
src/core/schema/flag.ts:607
Signatures
interface KeyValueFlagDefinition extends FlagDefinitionBase {}Members
Properties
aggregateStandard
Standard Schema v1 validator applied to a completed collection.
aggregateStandard?: StandardSchemaV1<unknown, unknown>;aliases
Short/long aliases as bare names or FlagAlias records.
aliases?: readonly (string | FlagAlias)[];configPath
Dotted config path for config resolution (e.g. 'deploy.region').
configPath?: string;defaultValue
Runtime default value.
defaultValue?: unknown;deprecated
Deprecation marker. true deprecates without a message, a string carries the migration guidance.
deprecated?: string | true;description
Human-readable description for help text.
description?: string;duplicateKeys
How a repeated key combines. See DuplicateKeys.
duplicateKeys?: "error" | "last" | "first";duplicates
How repeated CLI occurrences combine. See DuplicatePolicy.
duplicates?: DuplicatePolicy;elementSchema
Element definition or an already-built element schema for each entry value.
elementSchema?: FlagSchema<"string" | "number" | "boolean" | "enum" | "array" | "custom" | "count" | "keyValue"> | FlagDefinition<"string" | "number" | "boolean" | "enum" | "array" | "custom" | "count" | "keyValue">;envVar
Environment variable name for env resolution.
envVar?: string;kind
Kind discriminator.
kind: "keyValue";presence
Presence state.
presence?: "optional" | "required" | "defaulted";prompt
Interactive prompt configuration.
prompt?: PromptConfig;propagate
Whether the flag propagates to descendant commands.
propagate?: boolean;separator
Pair separator each CLI occurrence is split on.
separator?: string;split
Env and stdin split policies.
split?: SourceSplitBinding;standard
Standard Schema v1 validator applied to each resolved value.
standard?: StandardSchemaV1<unknown, unknown>;stdin
Stdin binding. See StdinOptions.
stdin?: StdinOptions;valueHint
Help placeholder label ('url' renders as <url>).
valueHint?: string;