civo / cli-rubygem

Command line interface for interacting with Civo's cloud API
https://www.civo.com
MIT License
15 stars 4 forks source link

Output formats #18

Open andyjeffries opened 5 years ago

andyjeffries commented 5 years ago

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
kaihoffman commented 5 years ago

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