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

wing731 picture wing731  路  3Comments

satheeshCharles picture satheeshCharles  路  3Comments

atomantic picture atomantic  路  4Comments

hooksie1 picture hooksie1  路  3Comments

matteoturra picture matteoturra  路  4Comments