JSON Output for RBTools Status Command

Review Request #11541 — Created March 20, 2021 and submitted — Latest diff uploaded

Information

RBTools
master

Reviewers

Depends on JSON output object from r#11521. Adding information
that goes into rows of the status table into a JSON object. If no requests
are found the array remains empty. Also adds info if format_results is
called.

Ran unit tests in Commands and passed all tests

Changes between revision 1 and 2

orig
1
2
3
4
5
6
7

Commits

Summary ID Author
added JSON wrapper class to main.py which inputs to a dictionary and outputs ...
9bfcd1b986f5b42603b0809c7d78b638f6cee848 Ryan Kang
added new method to print JSON to stream object and tests to ensure it works ...
fbd48ac58a17e2f8d9feb7a219f66d061eed989c Ryan Kang
added new global command --json
9cf5b3f5bb931691494dfb7922a5a0c910ea8a2d Ryan Kang
added conditional at the end of command cycle to print JSON is enabled
2876f2452d8b0655055e362ef6684de8b8e32ae7 Ryan Kang
added method to append to classes and tests to ensure items are appended corr...
bcf004f831c02cbb35dfb5dc3d61b5e3406af2b5 Ryan Kang
added new method to add errors to existing errors key or create a new one
195b6bf5193604d04511431c6761790a033fb74f Ryan Kang
each summary is added as a json object to a list in summaries
0972da07e52fc7a97b1afd350a473f451476441c Ryan Kang
moved definition of summaries to before if statement so that if no requests a...
1279e6b76c47cc0091fd769275a778b412875817 Ryan Kang
each summary is added as a json object to a list in summaries
0972da07e52fc7a97b1afd350a473f451476441c Ryan Kang
moved definition of summaries to before if statement so that if no requests a...
1279e6b76c47cc0091fd769275a778b412875817 Ryan Kang
rbtools/commands/__init__.py
rbtools/commands/tests/test_main.py
Loading...