UffizziCloud / uffizzi_cli

The command-line interface for the Uffizzi API
Apache License 2.0
87 stars 46 forks source link

BUG: Render invalid json when preview list #157

Open zipofar opened 2 years ago

zipofar commented 2 years ago

Render invalid json: preview list --output=json

{
             :id => 2316,
     :created_at => "2022-09-02T01:44:57.812Z",
     :updated_at => "2022-09-02T10:57:03.616Z",
          :state => "active",
    :preview_url => "deployment-2316-make-test-22je.app.qa-gke.uffizzi.com",
       :metadata => {
        :labels => {
            :repo => "my-repo-1"
        }
    },
    :deployed_by => {
        :email => "demid.filippov@dualbootpartners.com"
    }
}
moklidia commented 2 years ago

Also need to disable comments like this when the --output option is present:

Successful Login by Identity Token
Unauthorized. Skipping credentials action.
Unauthorized. Skipping credentials action.
the38th commented 2 years ago

for QA: command uffizzi preview list now has flag --output which can be json or pretty-json uffizzi preview list --output=pretty-json should display deployments in human-readable json format uffizzi preview list --output=json should display deployments in one-string json format

NealArw commented 2 years ago

TESTED - OK CLI + Platform

NealArw commented 2 years ago

TESTED on production - OK