Skip to content

Add command group support, rename network commands - #500

Open
pederhan wants to merge 2 commits into
fix-large-build-contextfrom
add-command-groups
Open

pederhan wants to merge 2 commits into
fix-large-build-contextfrom
add-command-groups

Conversation

@pederhan

@pederhan pederhan commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

This PR adds support for deeper nesting of subcommands, command aliases, and renames network policy and network community to use new nested naming schemes.

Deeper nesting of subcommands

Deeper nesting of subcommands via a new method CommandRegistry.group is now possible.

New aliases parameter

Support 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 policy and network community commands slated for renaming have been renamed:

Old New
network policy_add network policy add
network policy_create network policy create
network policy_delete network policy delete
network policy_info network policy info
network policy_list network policy list
network policy_rename network policy rename
network policy_remove network policy remove
network policy_set_description network policy set_description
network policy_set_pattern network policy set_pattern
network policy_unset_pattern network policy unset_pattern
network policy_attribute_add network policy attribute add
network policy_attribute_create network policy attribute create
network policy_attribute_delete network policy attribute delete
network policy_attribute_info network policy attribute info
network policy_attribute_list network policy attribute list
network policy_attribute_remove network policy attribute remove
network policy_attribute_set_description network policy attribute set_description
network community_create network community create
network community_delete network community delete
network community_info network community info
network community_list network community list
network community_rename network community rename
network community_set_description network community set_description
network community_host_add network community host add
network community_host_remove network community host remove

This 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).

@pederhan
pederhan added this pull request to stack #499 November 17, 2026 15:00
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