mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-23 06:19:32 +01:00
test: derive the CLI inventory from the real commander program
The file asserted against a hand-written fixture array with its own argument parser, so it could not see a command being renamed, losing an alias or disappearing, and it described a `tui` command that does not exist. It now walks program.commands: names, aliases, subcommands, option flags, operands, descriptions, and a guard against registering a name or alias twice at one level. Assertions are "at least this exists", so a new command (including the tui one this plan adds later) passes without editing the test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
14a911b4f6
commit
b9afd5a57e
1 file changed
+170
-805
+170
-805
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user