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

Parameters for producing from file #3

Open
asusikov opened this issue Oct 1, 2021 · 2 comments
Open

Parameters for producing from file #3

asusikov opened this issue Oct 1, 2021 · 2 comments

Comments

@asusikov
Copy link

asusikov commented Oct 1, 2021

Hey, thank you for your project!
Would be nice to have ability to keep parameters in file and get it from saved file.

Save to file:

$ protokaf generate HelloRequest \
    --data '{"name": {{randomFemaleName | quote}}, "age": {{randomNumber 10 20}}}' \
    --count 10 \
    --seed 42
    --save data.json

After we can use file to produce:

$ protokaf produce HelloRequest \
    --load data.json
@LaFut
Copy link

LaFut commented Oct 3, 2021

You don't need additional parameters.
$ protokaf generate HelloRequest \ --data '{"name": {{randomFemaleName | quote}}, "age": {{randomNumber 10 20}}}' \ --count 10 \ --seed 42 > data.json
and
$ cat data.json | protokaf produce HelloRequest

@asusikov
Copy link
Author

I would like to save and load parameters, not data.

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