mailgun / kafka-pixy

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

Added kafka-pixy CLI interface tool #132

Closed thrawn01 closed 6 years ago

thrawn01 commented 6 years ago

Purpose

Provide a simple CLI tool for interacting with kafka-pixy

# Post a simple message from stdin
$ echo -n 'my-message' | kafka-pixy-cli produce my-topic

# Consume messages from a topic and write the message to stdout
$ kafka-pixy-cli consume my-topic
horkhe commented 6 years ago

@thrawn01 just fix the go vet error cmd/kafka-pixy-cli/main.go:317: unreachable code

thrawn01 commented 6 years ago

@horkhe Also added the following In the Makefile to set the version in the CLI binary.

go build -v -ldflags "-X main.Version=$(VERSION)" -o $(GOPATH)/bin/kafka-pixy-cli \
    github.com/mailgun/kafka-pixy/cmd/kafka-pixy-cli