Consul: Allow consul exec output to be machine readable

Created on 1 Jun 2017  路  2Comments  路  Source: hashicorp/consul

When programmatically executing consul exec we currently have to parse the output to get the values we need.
It would be nice to have a way of executing the consul exec with -machine-readable to stop any verbose output coming from Consul.

themcli typenhancement

Most helpful comment

Might be nice to have something like a -json output that provides a structured representation of the results, which would let you use jq or similar to pick out the bits you need.

All 2 comments

Might be nice to have something like a -json output that provides a structured representation of the results, which would let you use jq or similar to pick out the bits you need.

this could be a really killer-feature! BTW, for Consul exec, is there an intention to make it available through an API?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicholasjackson picture nicholasjackson  路  3Comments

deadjoe picture deadjoe  路  4Comments

sandstrom picture sandstrom  路  3Comments

aravind picture aravind  路  3Comments

philsttr picture philsttr  路  3Comments