Token
Token discriminated union.
The tokenizer produces these from raw argv strings. The parser then interprets them against a command schema.
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/parse/index.ts - Source link:
packages/dreamcli/src/core/parse/index.ts:33
Signatures
ts
type Token = { kind: "long-flag"; name: string; value: string | undefined; } | { chars: string; kind: "short-flags"; } | { kind: "positional"; value: string; } | { kind: "separator"; };