streamdal / plumber

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

unknown flag --json-array #339

Closed chris-aeviator closed 1 year ago

chris-aeviator commented 1 year ago

Describe the bug When trying to use the --json-array functionality to pipe data into plumber, the CLI errors with FATA[0000] Unable to handle CLI input: unable to parse CLI options: unknown flag --json-array

To Reproduce Steps to reproduce the behavior:

echo '[{"foo": "bar"}]' | plumber write kafka --address kafka:9092 --topics myTopic --json-array

Expected behavior plumber sends a message for each array element.

CLI (please complete the following information):

blinktag commented 1 year ago

@chris-aeviator the flag was changed to --input-as-json-array. I will get the docs updated this week to correct the flag. Sorry for the confusion!