mailgun / kafka-pixy

gRPC/REST proxy for Kafka
Apache License 2.0
774 stars 118 forks source link

CLI header support #147

Closed thrawn01 closed 6 years ago

thrawn01 commented 6 years ago

Purpose

Add CLI support for kafka headers introduced in PR #144

Implementation

Consume Events

$ kafka-pixy-cli consume my-topic -H
---
kit=kat
foo=bar
---
message-one
---
kit=kat
foo=bar
---
message-two

Produce Events

$ echo -n 'Hello World' | kafka-pixy-cli produce my-topic -H "kit=kat,foo=bar"
horkhe commented 6 years ago

This needs to be rebased.