Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

Add a flag to output data in JSON #45

@megCanicalKb

Description

@megCanicalKb

It would be nice to have a way to output the data in JSON to make it machine-parsable.

The use case here is to have a script that operates at a high-level while glacieruploader handles all of the operations/credentials.

Part of the changes that seems to be done include:

  • adding an option: "--json-output" and "-j"
  • redirecting the logging output to the error stream (to separate data and logs)
  • passing a new boolean to all commands: json_output
  • displaying in JSON when asked

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions