Expand description
The CLI reference in the workspace’s README.md, made from each binary’s
own --help.
Every binary a person runs has a cli_reference test that renders its
section and fails while the README holds anything else, so a new
subcommand or flag cannot land without its entry. A clap binary also fails
on any subcommand or argument with no help text, since that text is the
whole reference. scripts/gen-cli-reference.sh writes every section again.
Behind the reference feature, which only those tests turn on.
Constants§
- BLESS
- Set to anything but empty, and a stale section is written rather than failed.
- FIX 🔒
- What a developer runs when a section is stale.
- WIDTH 🔒
- The column help text is wrapped at, whatever terminal the test runs in.
Functions§
- check 🔒
- check_
command - Checks the section of a binary whose parser is clap.
- check_
usage - Checks the section of a binary that prints a hand-written usage.
- pages 🔒
- Every command a person can reach, each with its
--help: the root under the binary’s name, and each subcommand as a person types it. - section 🔒
- One collapsed block per binary, and in it each command’s help under a heading naming what a person types.
- stale 🔒
- The README with
binary’s section replaced bysection, orNonewhen it already holds exactly that. - undocumented 🔒
- Every subcommand and argument with no help text, by where it sits.
- walk 🔒
visitoncommandand every visible subcommand beneath it, skipping thehelpsubcommand clap adds.