Repository navigation
Conversation
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.
This PR adds support for deeper nesting of subcommands, command aliases, and renames
network policyandnetwork communityto use new nested naming schemes.Deeper nesting of subcommands
Deeper nesting of subcommands via a new method
CommandRegistry.groupis now possible.New
aliasesparameterSupport for hidden aliases to maintain backwards compatibility with old command names after renaming has been added via a new parameter
CommandRegistry.register(aliases=[...])Renamed commands
All
network policyandnetwork communitycommands slated for renaming have been renamed:network policy_addnetwork policy addnetwork policy_createnetwork policy createnetwork policy_deletenetwork policy deletenetwork policy_infonetwork policy infonetwork policy_listnetwork policy listnetwork policy_renamenetwork policy renamenetwork policy_removenetwork policy removenetwork policy_set_descriptionnetwork policy set_descriptionnetwork policy_set_patternnetwork policy set_patternnetwork policy_unset_patternnetwork policy unset_patternnetwork policy_attribute_addnetwork policy attribute addnetwork policy_attribute_createnetwork policy attribute createnetwork policy_attribute_deletenetwork policy attribute deletenetwork policy_attribute_infonetwork policy attribute infonetwork policy_attribute_listnetwork policy attribute listnetwork policy_attribute_removenetwork policy attribute removenetwork policy_attribute_set_descriptionnetwork policy attribute set_descriptionnetwork community_createnetwork community createnetwork community_deletenetwork community deletenetwork community_infonetwork community infonetwork community_listnetwork community listnetwork community_renamenetwork community renamenetwork community_set_descriptionnetwork community set_descriptionnetwork community_host_addnetwork community host addnetwork community_host_removenetwork community host removeThis PR was initially conceived with Claude Fable 5.1, then I wrote some stuff manually, and then went back with GLM 5.3 to rewrite a clunky test suite and add support for arbitrarily named aliases (first iteration required the first component in the alias to be an existing command/group).