Skip to content

Add list-capabilities subcommand to CLI - #18

Merged
purahan merged 1 commit into
purahan:mainfrom
eduarruda:add-list-capabilities-cli
Aug 9, 2026
Merged

Add list-capabilities subcommand to CLI#18
purahan merged 1 commit into
purahan:mainfrom
eduarruda:add-list-capabilities-cli

Conversation

@eduarruda

Copy link
Copy Markdown
Contributor

What this does

Adds a new list-capabilities subcommand to the CLI, which subscribes to
lingua/capabilities and prints the registered capabilities (optionally
filtered with --tag).

Changes

  • Restructured argparse to use subcommands: ground (existing behavior,
    now explicit) and list-capabilities (new)
  • Added CapabilitiesListener node, following the same subscription
    pattern used in dispatcher_node.py
  • Added --tag filter matching the logic in CapabilityRegistry.get_by_tag()

Testing

  • Validated argparse structure locally (all 4 usage scenarios)
  • Verified cli.py compiles without syntax errors
  • Not yet tested against a live DispatcherNode, since I don't have a
    local 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>" to cli ground "<instruction>",
since subcommands require an explicit name. Happy to adjust if you'd prefer
a different approach (e.g. defaulting to ground when no subcommand is given).

Closes #14

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
purahan self-requested a review August 9, 2026 17:19
@purahan
purahan merged commit 29eb910 into purahan:main Aug 9, 2026
6 checks passed
@purahan

purahan commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Thanks for this @eduarruda
Solid first contribution! Great to see someone follow through from issue to PR.
Looking forward to more from you.

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.

list-capabilities CLI verb missing

2 participants