Skip to content

loci-cli: add loci overview — grouped command catalogue - #88

Merged
huximaxi merged 1 commit into
mainfrom
feat/cli-overview
Sep 13, 2026
Merged

huximaxi merged 1 commit into
mainfrom
feat/cli-overview

Conversation

@huximaxi

Copy link
Copy Markdown
Owner

loci overview (alias commands): 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 each Cmd variant), 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.

  • --json for machine use (full descriptions); the text view trims each to one brief line.
  • Works with no palace detected (soft detection, never errors).
  • Unit test asserts every subcommand is grouped exactly once — a new command can't silently fall out of the overview.

One file (loci-cli/src/main.rs), no new dependencies. Build clean, 13 tests pass, clippy clean for the new code.

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.
@huximaxi
huximaxi merged commit 7f4e18e into main Sep 13, 2026
5 checks passed
@huximaxi
huximaxi deleted the feat/cli-overview branch September 13, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant