Skip to content

docs: generate reports a tree, and --list is the per-file form - #30

Merged
Kinflou merged 1 commit into
mainfrom
docs/generate-tree-output
Oct 13, 2026
Merged

Kinflou merged 1 commit into
mainfrom
docs/generate-tree-output

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 13, 2026

Copy link
Copy Markdown
Member

Follows cli#61, which made
the tree how generate reports its output — it previously existed only under
--dry-run — and added --list for the one-line-per-file form.

Held back from that PR on purpose: scripts/check-cli-drift.py compares
cli.md against the installed binary, so documenting --list before the
flag shipped would have failed the check. It duly caught it afterwards:

`comline generate`
  + --list               in the CLI, not in the docs

Both drift scripts are clean now.

cli.md

--list added to the flag list, and the --dry-run sentence rewritten — it
claimed --dry-run was what produced the tree, which is no longer what
either flag does.

generating-code.md

The "Running it" section showed neither --dry-run nor what the output
actually looks like, so it gains the tree and an example line for the flag.
Plus the part worth knowing: --list names the schema each file came from
(api.ids → generated/rust/api.rs) and the package version when several are
generated at once, neither of which a tree of destinations can show — and
the two flags are independent, one deciding whether anything is written and
the other how it's reported.

cli#61 made the tree how `generate` reports its output rather than something
only `--dry-run` drew, and added `--list` for the one-line-per-file form.

`check-cli-drift.py` caught `--list` missing from `cli.md`, which is also
what kept this out of the same PR - the check compares the page against the
installed binary, so the flag had to ship first.

The guide's "Running it" section showed neither `--dry-run` nor the tree, so
it gains both, plus what `--list` has that a tree can't show: the schema each
file came from, and the package version when several are generated at once.
@Kinflou
Kinflou merged commit 219248c into main Oct 13, 2026
3 checks passed
@Kinflou
Kinflou deleted the docs/generate-tree-output branch October 13, 2026 09:19
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