Add list-capabilities subcommand to CLI - #18
Merged
Conversation
Adds a new 'list-capabilities' subcommand that subscribes to lingua/capabilities and prints registered capabilities, optionally filtered by --tag. Restructures the existing instruction-sending behavior under a 'ground' subcommand for consistency. Tested argparse structure locally; runtime behavior against a live DispatcherNode not yet verified (no local ROS2 environment). Closes purahan#14
purahan
self-requested a review
August 9, 2026 17:19
purahan
approved these changes
Aug 9, 2026
Owner
|
Thanks for this @eduarruda |
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.
What this does
Adds a new
list-capabilitiessubcommand to the CLI, which subscribes tolingua/capabilitiesand prints the registered capabilities (optionallyfiltered with
--tag).Changes
ground(existing behavior,now explicit) and
list-capabilities(new)CapabilitiesListenernode, following the same subscriptionpattern used in
dispatcher_node.py--tagfilter matching the logic inCapabilityRegistry.get_by_tag()Testing
cli.pycompiles without syntax errorsDispatcherNode, since I don't have alocal ROS2 environment set up. Would appreciate a maintainer verifying
runtime behavior, or pointers on a lightweight way to test this.
Note on behavior change
Existing usage changes from
cli "<instruction>"tocli ground "<instruction>",since subcommands require an explicit name. Happy to adjust if you'd prefer
a different approach (e.g. defaulting to
groundwhen no subcommand is given).Closes #14