Skip to content

CLI: deps group, generate → generation (gen), clean → generation clean - #153

Merged
Kinflou merged 2 commits into
mainfrom
cli/deps-and-generation
Nov 12, 2026
Merged

Kinflou merged 2 commits into
mainfrom
cli/deps-and-generation

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 12, 2026

Copy link
Copy Markdown
Member

Restructures the command surface; a pure move/rename of existing commands.

Moves

  • comline add -> comline deps add
  • comline accept -> comline deps accept
  • comline generate -> comline generation (alias gen; same flags, now with an optional subcommand like doc)
  • comline clean -> comline generation clean
  • generation clean gains --target/-t <LANG>: only that language's output is removed. An unknown language errors like generation --target does (no code-generation target matches ...). When the target shares its output root with another configured target, only its own files are removed, not the whole root. reset still removes everything.

Help texts, hints, module docs, the README and docs/cli.md are updated to the new names. Tests use the new invocations, plus new ones for the gen alias, generation clean --target, and the old top-level names being rejected.

Hard rename

Pre-1.0, so there are no aliases or deprecation shims for the old names: comline generate|clean|add|accept now fail with clap's "unrecognized subcommand".

Follow-ups

  • deps remove / pin / list come in a follow-up PR.
  • cli#145's fetch / vendor will land under deps.

…neration clean`

`add` and `accept` move under a new `deps` group; `generate` becomes
`generation` (alias `gen`), and `clean` becomes `generation clean`, which
gains `--target` to limit the cleanup to one language's output. A hard
rename: the old top-level names are gone, with no aliases.
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