Documentation
¶
Overview ¶
Command skillcheck holds a built hopsesh program to its own skill, as the release ships it: it reads the visible command tree from the program's help (every command's `--help`), installs the skill the program writes into a throwaway home, and fails when the skill names a command or flag the program lacks, when a visible flag is neither in the skill nor in the allowlist (or an allowlist entry is stale), or when the tree differs from the checked-in golden. CI and the release workflow run it; the same checks run in internal/ui/cli's tests from the cobra commands. Nothing outside the temporary home is read or written, and nothing connects anywhere.
go run ./internal/devtools/skillcheck -bin dist/hopsesh \ -golden internal/ui/cli/testdata/cli-tree.golden -allow internal/ui/cli/testdata/skill-undocumented-flags.txt