Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown flag --json-array #339

Closed
chris-aeviator opened this issue Feb 26, 2023 · 1 comment
Closed

unknown flag --json-array #339

chris-aeviator opened this issue Feb 26, 2023 · 1 comment

Comments

@chris-aeviator
Copy link

chris-aeviator commented Feb 26, 2023

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):

  • OS: arch linux
❯ plumber --version
v2.1.0-5355376
@blinktag
Copy link
Member

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants