cli-rubygem icon indicating copy to clipboard operation
cli-rubygem copied to clipboard

Output formats

Open andyjeffries opened this issue 6 years ago • 1 comments

I think we should implement a global -o=json or --output=json which outputs in JSON format for neat scripting in to jq.

I also think we should consider a -q which gives a quieter output to commands. For example:

$ civo instance password gitops-prod -q
foo-password-here
$ civo instance password gitops-prod
The password for gitops-prod.example.civo.com is foo-password-here # with green highlights

andyjeffries avatar Jul 11 '19 11:07 andyjeffries

-q implemented for instance public_ip and instance password` so far. https://github.com/civo/cli/commit/982ba498e1d2c699839de2a04bd7684c933bb558

kaihoffman avatar Jul 11 '19 12:07 kaihoffman