Expand description
Command-line argument parser for the haz binary.
Built on bpaf 0.9 using the combinator API; the derive
macro is deliberately not used so the parser type tree stays
decoupled from bpaf’s macros. The parser produces a Cmd
sum: one variant per command shape that the spec names
normatively (haz run, haz check, haz cache clear,
haz cache clean --soft).
--help and --version are provided by bpaf automatically;
the version string is sourced from CARGO_PKG_VERSION at
compile time.
Structs§
- Cache
Clean Args - Arguments parsed for the
haz cache cleansubcommand. - Check
Args - Arguments parsed for the
haz checksubcommand. - Init
Args - Arguments parsed for the
haz initsubcommand. - Query
Args - Arguments parsed for the
haz querysubcommand. - RunArgs
- Arguments parsed for the
haz runsubcommand. - WhyArgs
- Arguments parsed for the
haz whysubcommand.
Enums§
- Cmd
- Top-level command parsed from
argv. - Field
Presence - Per-field presence selector for the
--has-X/--no-Xflag pairs ofQRY-005. Encoding the pair as a single tri-state value lifts the spec’s intra-pair mutex (within a pair, the two flags are mutually exclusive) into the type system, so the invariant cannot be violated at any layer. - GitFilter
- Git-changeset filter selected on the
haz runinvocation. - Output
Format - Output presentation for
haz queryperQRY-008. - Output
Mode - How the executor surfaces a running task’s
stdoutandstderrto the user. - Scope
- How broadly a task-set selection ranges over the workspace.
- TaskRef
- A validated task reference.
Functions§
- cli
- Build the top-level argument parser.