jmarhee / pyputio-cli

0 stars 0 forks source link

parsability #3

Closed jmarhee closed 2 years ago

jmarhee commented 3 years ago

single quotes in response body should be double quotes, this ties into #1 but on its own right now its not parsable anyway bc of the text etc. etc. nest this in the response for json output only

jmarhee commented 2 years ago

I want to fix this by introducing a PUTIO_OUTPUT_MODE flag, where the options are:

  1. Any response (DEFAULT): prints as it does today with the report and the json response body
  2. json: json only
  3. progress: progress bar only.
  4. silent: exits silently.
  5. pretty: frontend for the json body (not necessarily just pprint'd)
jmarhee commented 2 years ago

6 all but pretty (i dont care, users can jq this problem away)