Ask HN: JSON Output for CLI Tools?
I am currently our public command-line tool some love and although we officially have an `--output=json` flag, it rarely works or does anything useful.
* While thinking about how to fix/implement this for more commands I was wondering if this kind of more structured output is actually of interest/use for developers/devops/SRE?
Some context: The tool in question is a client for our API and used for validation + updating resources and triggering long running loadtest jobs. Users are developers, although we also recommend it for integration into CI/CD pipelines etc.
Any feedback is welcome :)
4 comments
[ 4.7 ms ] story [ 15.0 ms ] threadMy confusion is more about general logs ("preparing output in /tmp/randomid") and progress updates ("the job is 25% done", "deploying cluster", "docker image download: 90%"). Is that actually of interest as structured output or should that remain as human readable on stderr?