Formatted output for extensibility #30
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
sig/release
Categorizes an issue or PR as relevant to SIG Release.
What would you like to be added:
I would like to add support for formatted outputs like
yaml
andjson
. As mentioned in #21 and #27 Zeitgeist can be used by other systems that rely on the output of Zeitgeist to perform some actions. To allow smoother integrations with other systems, eg: build system, dependency bots, etc, we need a machine readable output.Example:
For the following
dependency.yaml
:The output (in yaml format) can be :
The output format can be specified by
--output-format
and the accepted values will bejson
andyaml
.Would also be better to add a
-o
flag to support writing the output to a target file. Would default to writing the output todependency_output.(yaml|json)
Why is this needed:
As mentioned in #21 and #27 Zeitgeist can be used by other systems that rely on the output of Zeitgeist to perform some actions. To allow smoother integrations with other systems, eg: build system, dependency bots, etc, we need a machine readable output.
Additional note:
An issue along the same lines is recorded at #21. This issue will be used to track the efforts on this feature as it is going to cover a broader list of output formats, namely
yaml
andjson
.The text was updated successfully, but these errors were encountered: