CLI-07: Carve out files with --exclude
What it demonstrates
Section titled “What it demonstrates”–exclude drops matching files from the run, here skipping archived entities.
Builds on: CLI-06: Narrow the run with –include
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.
# drop matching files; the failing archived doc is excluded, leaving a clean treemarkdown-contract validate ./planning --exclude '**/archive/**' --contract planning.contract.yamlScanned 2 files; 1 matched, 1 unmatched
No findings.# exit status: 0 (nothing left fails)Surfaces exercised
Section titled “Surfaces exercised”--exclude glob (run-root-relative)runner exclude filterexit 0 when nothing left fails