Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] JSON Output #3847

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

HassanAbouelela
Copy link
Contributor

Fixes #1457

Description of the Change

Created a JSON printing class, and rewrote boinccmd to use it.

Alternate Designs

It is possible to hardcode the JSON output similar to the way the old system was. This method was chosen because it allows more options to be added, without much extra work, and can be used for other data output (See #3726).

Release Notes

Added JSON output options to boinccmd.

Additional Notes
f8b63d0 adds a test suite for the pretty_printer class, but introduces no actual changes.

Create and add a printer class to output data in either JSON or plain 
fomrat.
Restructured data print methods to accommodate for JSON and regular 
output.
Add native unit tests for the pretty printer class. No functional changes.
@AenBleidd AenBleidd marked this pull request as draft June 17, 2020 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make boinccmd output machine-readable
1 participant