Skip to content

zenoh attachment API integration for CLI - #80

Draft
freol35241 wants to merge 3 commits into
mainfrom
claude/plan-zenoh-attachment-api-01KxkZMAefqtnAory9ATKUAL
Draft

zenoh attachment API integration for CLI#80
freol35241 wants to merge 3 commits into
mainfrom
claude/plan-zenoh-attachment-api-01KxkZMAefqtnAory9ATKUAL

Conversation

@freol35241

Copy link
Copy Markdown
Contributor

No description provided.

Implement support for Zenoh's attachment API, enabling key-value metadata
to be sent alongside messages. This adds:

- --attachment KEY=VALUE option for put, delete, and get commands
- --attachment-from-line option for put to extract attachments from stdin
- {attachment} and {attachment:KEY} format placeholders for output
- Helper functions for parsing and formatting attachments
- Comprehensive tests for all attachment functionality

Example usage:
  zenoh put -k "sensor/temp" -v "23.5" --attachment "source=device1"
  zenoh subscribe -k "sensor/*" --line "{value} (source={attachment:source})"
@freol35241
freol35241 marked this pull request as draft December 9, 2025 06:38
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.

2 participants