Repository navigation
CLI: deps group, generate → generation (gen), clean → generation clean - #153
Merged
Merged
Conversation
…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.
Kinflou
marked this pull request as ready for review
November 12, 2026 22:51
This was referenced Nov 12, 2026
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.
Restructures the command surface; a pure move/rename of existing commands.
Moves
comline add->comline deps addcomline accept->comline deps acceptcomline generate->comline generation(aliasgen; same flags, now with an optional subcommand likedoc)comline clean->comline generation cleangeneration cleangains--target/-t <LANG>: only that language's output is removed. An unknown language errors likegeneration --targetdoes (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.resetstill removes everything.Help texts, hints, module docs, the README and
docs/cli.mdare updated to the new names. Tests use the new invocations, plus new ones for thegenalias,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|acceptnow fail with clap's "unrecognized subcommand".Follow-ups
deps remove/pin/listcome in a follow-up PR.fetch/vendorwill land underdeps.