adevinta / zoe

The Kafka CLI for humans
https://adevinta.github.io/zoe
MIT License
287 stars 21 forks source link

Add --expose-metadata option #46

Closed wlezzar closed 3 years ago

wlezzar commented 3 years ago

Add --expose-metadata to make querying and filtering on records metadata easier and more intuitive.

Example:

zoe topics consume input \
    --dialect jq \
    --expose-metadata \
    --filter '.__metadata__.offset == 1' \
    --query '{_id, offset: .__metadata__.offset}'