Repository navigation
fix(cli): name the replacement of a command 0.8.0 removed - #1052
Merged
Merged
Conversation
`pixel ready` and the 40 other pre-rename aliases #965 dropped got clap's "a similar subcommand exists: 'rename'". The unknown-command dispatch now names the current command (with the plugin install line when it moved to a plugin no plugin provides), exits 2 and runs nothing. The names stay removed; `pixel hook …` still fails open first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LivioGama
pushed a commit
that referenced
this pull request
Nov 25, 2026
`pixel ready` and the 40 other pre-rename aliases #965 dropped got clap's "a similar subcommand exists: 'rename'". The unknown-command dispatch now names the current command (with the plugin install line when it moved to a plugin no plugin provides), exits 2 and runs nothing. The names stay removed; `pixel hook …` still fails open first. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #1047
Summary
A command name 0.8.0 removed (the 41 pre-rename aliases #965 dropped) now prints one stderr line naming its replacement,
pixel: 'ready' was removed in 0.8.0; usepixel prepare-repo``, plus the plugin install command when the replacement moved to an uninstalled plugin, and exits 2. The names stay removed: no alias comes back.plugin_cmd::plan (unknown subcommand) installed plugin of that name → run it moved to a plugin (invoke.rs) → "moved to a plugin: pixel install …" + removed_commands::removed_hint → "'<old>' was removed in 0.8.0; use `pixel <new>`" else → clap's error, unchangedEvidence
pixel ready→error: unrecognized subcommand 'ready'/tip: a similar subcommand exists: 'rename'.cargo test -p pixel-cli --test cli -- plugin_cli:: docs_drift::→ 62 passed, includinga_removed_command_names_its_replacement_and_nothing_else(stderr namesprepare-repo, neverrename; exit 2; empty stdout; no action-log line) andan_old_hook_entry_still_fails_open; an unknown name still gets clap's error.cargo test -p pixel-cli --bin pixel -- removed_commands plugin_cmd::tests→ 16 passed: the table is the 41 aliases of74b53a19^, sorted and unique; no removed name parses; every replacement exists (built-in or plugin command);check-release, published by a plugin but still built in, is named alone; the install line disappears once the plugin runs.clippy -p pixel-cli --all-targets -D warningsandprepare.sh --checkclean. Not run locally: the full workspace suite (CI).Merge Danger
Door: two-way: error wording only.
Blast radius: one op: what an unknown subcommand prints when it is a removed name.
pixel hook …still fails open before reaching it.Possible textual conflict with #1050 (both touch
crates/pixel/src/plugin_cmd.rsandtests/cli/plugin_cli.rs).Docs touched
.github/changelog.d/removed-command-hint.fixed.md;ARCHITECTURE.md(how unknown subcommands are dispatched).