Repository navigation
refactor(cli): remove redundant command registry - #357
Merged
Merged
Conversation
davidabram
force-pushed
the
refactor/cli-command-routing-simplification
branch
from
November 23, 2026 19:17
f4ae105 to
5120fda
Compare
davidabram
marked this pull request as ready for review
November 23, 2026 19:18
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.
Summary
Remove the redundant top-level
CommandRegistryname table and default request constructors. The Clap schema already owns the command grammar; the parser can constructRuntimeCommanddirectly.Changes
DEFAULT_COMMAND_NAMES,CommandRegistry,build_default_registry, anddefault_runtime_commandfromservices/command_registry.rs; retain the staticRuntimeCommandenum and its direct execution dispatch.AppRuntime, command lifecycle dispatch, and parser.--versionto the existing version variant with the default text format.command_surface::is_known_command.Tests
--versionpath.Validation
nix flake checkhave not been executed: this environment lacks the Rust/Nix toolchains and outbound git DNS. Run the repository's normalnix flake checkbefore making this PR ready for merge.No automatic merge or production deployment requested.