This adds the --json-output flag to topicctl, which prints a json blob of changes maded during a topicctl apply to stdout at the end of an apply run. Currently this only works for creating a topic and updating that topic's settings.
Right now the flag only controls whether the json blob is printed, all of the logic for producing the json blob still happens in the backend regardless of whether the flag is passed or not. This can be improved in the future.
Running this yourself
To test this for yourself, checkout the branch, run make install in repo root, edit the topics in topic-default.yaml, and run:
Description
This adds the
--json-output
flag to topicctl, which prints a json blob of changes maded during atopicctl apply
to stdout at the end of an apply run. Currently this only works for creating a topic and updating that topic's settings.Right now the flag only controls whether the json blob is printed, all of the logic for producing the json blob still happens in the backend regardless of whether the flag is passed or not. This can be improved in the future.
Running this yourself
To test this for yourself, checkout the branch, run
make install
in repo root, edit the topics intopic-default.yaml
, and run:Make sure you have a kafka container running (you can get one by running
sentry devservices up
in the sentry repo).Sample Output