streamdal / plumber

A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.
https://streamdal.com
MIT License
2.08k stars 71 forks source link

cannot pipe, due to --input read options #331

Closed chris-aeviator closed 1 year ago

chris-aeviator commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: create a text file

my first message
my second message

Pipe the data to plumber as seen in docs

cat test-data.txt | plumber write kafka --address kafka:9092 --topics topic

Expected behavior plumber writes two messages to kafka

Actual behavior FATA[0000] unable to complete command: unable to validate read options: either --input or --input-file or must be specified

when using --input-file test-data.txt only one message is written

Screenshots

CLI (please complete the following information):

Additional context Add any other context about the problem here.

blinktag commented 1 year ago

Thanks for the report @chris-aeviator, we'll get a fix out shortly

blinktag commented 1 year ago

@chris-aeviator The issue is fixed now in https://github.com/batchcorp/plumber/releases/tag/v2.0.0