Option for json output for CLI #5904
Labels
theme/operator-usability
Replaces UX. Anything related to making things easier for the practitioner
type/enhancement
Proposed improvement or new feature
type/umbrella-☂️
Makes issue the "source of truth" for multiple requests relating to the same topic
Feature Description
A global
-out [table|json]
option to modify the commands output from the current "table" to jsonor
Use Case(s)
consul CLI is very convenient for a bit of bash scripting, when one doesn't wan't to curl everything. One annoying bit is the "human readable" output, which need to be parsed to be exploitable. The good ol'
| grep | awk
and so on. But it's unreliable on the long term. Adding a "machine readable" output like json would allow using jq for a more sustainable resultThe text was updated successfully, but these errors were encountered: