CLI-09: Apply one contract inline with --contract
What it demonstrates
Section titled “What it demonstrates”–contract validates a tree against a single YAML contract directly, no config file needed.
Builds on: CLI-08: Lean on auto-discovered config
How it’s done
Section titled “How it’s done”A terminal session: the command as you’d run it, followed by the output it prints; trailing comments note the exit status.
# apply one YAML contract to every *.md under a path — no config file neededmarkdown-contract validate ./decisions --contract contracts/decisions.contract.yamlScanned 1 file; 1 matched, 0 unmatched
No findings.# --contract builds a single catch-all rule (**/*.md) and cannot combine with --config; exit status: 0Surfaces exercised
Section titled “Surfaces exercised”--contract <yaml> (config-less parameterization)buildInlineConfig single-contract catch-all rule **/*.mdcannot combine with --config