jlandersen / vscode-kafka

Apache Kafka® extension for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Producer message from file

sir-farfan opened this issue · comments

Hey there
I'm new to this extension, I'm reading the documentation but haven't found if there's a way to load the message to be sent from a file.
If I write {{}} I can see some system.path stuff, but I'm not sure if I can use that to tell the producer to send the contents of a file

This is what I'm attempting to do:

PRODUCER message-from-file
topic: mytopic
{{path/to/file.xml}}

This is not supported. In the meantime can just copy the content of the xml file into the .kafka file, eg.

PRODUCER my-producer
topic: mytopic
key: mykey

<foo>
  <bar />
</foo>