mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
TestCommandLines (internal/cli/commandlines_test.go) reads every devvm command line in the repo: docs (the CLI reference too), README, AGENTS.md, locales/en.toml, Go comments and strings, assets/, install.sh, tests/e2e.sh, testdata scripts and stubs, scripts, packaging, workflows and the skills (5722 lines in 606 files). Each command must exist, each flag must be one that command takes, a placeholder must be one its Use shows and a flag's value the form its help shows, and a reserved word after a command with commands of its own must be one of them. Lines written to be typed (code blocks, code spans, testscript exec) get their values checked with checkFlagValue and, with nothing to fill in, run in the stubbed tree, where they mustn't be a usage error. Lines written to show a refusal are in refused, each with why. TestCheckCommandLine checks it finds each kind of stale line. mise run test and lint:docs run it; Contributing's The CLI rule tests says what it checks. Fixed: gc_older_than_needs_history said --older-than AGE (DURATION); no_vm_ports said devvm --ports LIST (the flag's form is PORTS); the guest agents' note read "(devvm network policy)" as a command (devvm's). Co-Authored-By: Claude Opus 5.5 <[email protected]>