CommandConstraint
A declarative relationship between two or more command inputs.
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/schema/constraints.ts - Source link:
src/core/schema/constraints.ts:14
Signatures
ts
type CommandConstraint = { kind: "conflicts" | "requires"; inputs: readonly [ConstraintInput, ConstraintInput]; } | { kind: "exactlyOne" | "atMostOne" | "allOrNone"; inputs: readonly [ConstraintInput, ConstraintInput, ...ConstraintInput[]]; };