riboseinc / digicert

Ruby bindings for the Digicert Services API
https://www.digicert.com/services/v2/documentation
MIT License
8 stars 10 forks source link

Allow output option `--output json` #122

Closed ronaldtse closed 7 years ago

ronaldtse commented 7 years ago

--output json will provide JSON output that can be parsed by jq.

For example, a table like this

screenshot 2017-06-13 14 34 56

Could produce a jq parseable output of:

{
  "order":  {
    "id": 1002019,
    "common-name": "*.ribosetest.com",
    "san-names": [
      "*.ribosetest.com",
      "ribosetest.com"
    ],
    "status": "approved",
    "valid-from": "2017-06-13T00:00:00Z",
    "valid-utill": "2017-06-15T00:00:00Z"
  }
}
ronaldtse commented 7 years ago

Actually this belongs to riboseinc/digicert-cli#27 , closing here...