loci-cli: add loci overview — grouped command catalogue - #88
Merged
Merged
Conversation
A discovery surface richer than clap's flat --help: every command grouped (Read the palace / Garden & session / Egress & proof / Setup / Meta) with a one-line description and an example, plus the three doors (CLI, app, kit). Descriptions are read live from clap's `about` (the doc comment on each Cmd variant), never a hand-kept copy, so the overview cannot drift from --help. --json for machine use; `commands` alias; works with no palace. A unit test asserts every subcommand is grouped exactly once.
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.
loci overview(aliascommands): a discovery surface richer than clap's flat--help. Every command grouped — Read the palace / Garden & session / Egress & proof / Setup / Meta — each with a one-line description and an example, plus the three doors (CLI, companion app, templates kit).Descriptions are read live from clap's
about(the doc comment on eachCmdvariant), not a hand-maintained copy, so the overview can never drift from--help. The curated table holds only grouping, one example per command, and the door list.--jsonfor machine use (full descriptions); the text view trims each to one brief line.One file (
loci-cli/src/main.rs), no new dependencies. Build clean, 13 tests pass, clippy clean for the new code.