flag
Flag schema factory. Call flag.<kind>() to create an immutable FlagBuilder with full type inference and safe modifier chaining.
- Import:
@kjanat/dreamcli - Export kind: constant
- Declared in:
src/core/schema/flag.ts - Source link:
packages/dreamcli/src/core/schema/flag.ts:658
Signatures
ts
const flag: FlagFactory;Related Examples
- Basic single-command CLI. -
examples/standalone/basic.ts - Interactive prompts with config file fallback. -
examples/standalone/interactive.ts - Mixed machine-readable JSON and human-readable side-channel output. -
examples/standalone/json-mode.ts - Middleware patterns: auth guard, request timing, error handling. -
examples/standalone/middleware.ts - Multi-command CLI with nested command groups (git-like). -
examples/standalone/multi-command.ts - Spinner and progress bar usage. -
examples/standalone/spinner-progress.ts - Testing examples using @kjanat/dreamcli/testkit. -
examples/standalone/testing.ts