I am trying to send multiple messages to NATs jetstream and the flag --input-as-json-array seems to have no effect. It always produces a single message.
To Reproduce
Steps to reproduce the behavior:
Use the file attached below as input
Execute the following command: ./plumber-linux write nats-jetstream --dsn="nats://localhost:4222" --subject=orders --input-as-json-array=yes --input-file=output.json
Output is INFO[0000] Successfully wrote '1' message(s) pkg=plumber
Describe the bug
I am trying to send multiple messages to NATs jetstream and the flag --input-as-json-array seems to have no effect. It always produces a single message.
To Reproduce Steps to reproduce the behavior:
./plumber-linux write nats-jetstream --dsn="nats://localhost:4222" --subject=orders --input-as-json-array=yes --input-file=output.json
INFO[0000] Successfully wrote '1' message(s) pkg=plumber
Input file
Expected behavior A clear and concise description of what you expected to happen.
The help for
--input-as-json-array
statesTreat input as JSON array - each array element will be written as a separate message
Screenshots If applicable, add screenshots to help explain your problem.
CLI (please complete the following information):
Additional context Add any other context about the problem here.