Files
devvm/docs
w3cjandClaude Opus 5.5 368991cf9f test(cli): rule tests walk the command tree for help, flags, --json, names, arguments and prompts
New tests:
- TestEveryCommandsHelp: Short in sentence case without a full stop, Long
  of one to three sentences, Example, docs page; root's commands in a group
  (devvm help excepted).
- TestFlagNames: shorthands only -h -v -f -g -n, each for one flag; no
  --yes; one help text per flag name but manyUses (backend, cpus, memory,
  disk, global, json).
- TestDurationFlags: DURATION flags go through state.ParseDuration; no
  time.Duration flags.
- TestShowCommandsTakeJSON: every visible command takes --json or is in
  withoutJSON with why.
- TestCommandNames: lower-case names, no aliases, no list/show/get/delete/
  remove/ls but devvm ls, unX has a sibling X, Use arguments are
  placeholders or words.
- TestUseMatchesArgs: every command runs with the arguments its Use shows.
- TestPromptsAnswered (internal/msg): every message given to Ask, Confirm,
  Answer, Secret, Pick or PickOne has an AnswerFor answer or is in
  terminalOnly with why.

Extended:
- TestPersistentFlags: every command takes -h/--help, --no-input,
  -v/--verbose.
- TestUsageErrorsEveryCommand: a blank value for every string flag is a
  usage error.
- TestJSONShapes: every command with --json has a shape.

Contributing: The CLI rule tests section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 05:04:35 -08:00
..