Repository navigation
Keep leaf command paths discoverable in hierarchical help - #10
Merged
Merged
Conversation
Root and group human --help still use Commander for immediate children, then list descendant leaves from the live command tree so agents and the plugin skill check can find two-word forms like `media generate`. Co-authored-by: Gersham Meharg <gersham@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
PR #7 switched the CLI to Commander hierarchical help. Root
screenrig --helpnow lists only top-level groups (media,account,agent, …), so the plugin skill-vs-binary check (scripts/test-skill-commands.py) no longer finds taught two-word command strings such asmedia generate,account show, andagent enroll.Change
Keep Commander’s hierarchical immediate-child listing. For root and group human help, append an All commands inventory of descendant leaf paths (canonical names plus aliases) walked from the live command tree. Do not hardcode the list.
JSON
--json --helpHelpDocument stays hierarchical:commandsremains immediate children;usageis the same human text, including the inventory.Leaf
--helpis unchanged (no inventory). Group help stays focused —screenrig media --helpstill lists media children, and its inventory is only media leaves.Tests
media generateetc.screenrig --helpstdout includes everyCOMMAND_SPECSpath (the plugin substring check).