strmprivacy / cli

This is the STRM Privacy Command Line Interface, to define and manage your privacy streams, data schemas, event contracts and much more.
https://strmprivacy.io
Apache License 2.0
6 stars 2 forks source link

strm sim run-random should give preference to options instead of saved-entities #48

Closed jankeesvanandel closed 1 year ago

jankeesvanandel commented 3 years ago

Describe the bug When I pass the --client-id and --client-secret options to the CLI command sim run-random, it first tries to find the saved entity with the stream-name. And only if it is not found, it uses the options. It should be the other way around and give preference to the options, and only use the saved entity if none are entered.

See: https://github.com/streammachineio/cli/blob/master/pkg/sim/randomsim/randomsim.go#L25