Add --json flag to format rbt output as json.
Review Request #9245 — Created Oct. 3, 2017 and discarded — Latest diff uploaded
When running the
rbt
command from a script, it is difficult to parse
the output log messages in order to get necessary information from the
command that was run.This change adds a
--json
flag to allrbt
commands to change the
output to json to make command output parsing easier from a script.The
rbt diff
command hasn't been changed because diff output is
expected on stdout.
All rbt tests passed.
Diff Revision 5
This is not the most recent revision of the diff. The latest diff is revision 13. See what's changed.
orig
1
2
3
4
5
6
7
8
9
10
11
12
13
rbtools/api/cache.py |
---|
rbtools/clients/__init__.py |
---|
rbtools/clients/clearcase.py |
---|
rbtools/commands/__init__.py |
---|
rbtools/commands/api_get.py |
---|
rbtools/commands/attach.py |
---|
rbtools/commands/close.py |
---|
rbtools/commands/install.py |
---|
rbtools/commands/land.py |
---|
rbtools/commands/login.py |
---|
rbtools/commands/logout.py |
---|
rbtools/commands/main.py |
---|
rbtools/commands/patch.py |
---|
rbtools/commands/post.py |
---|
rbtools/commands/publish.py |
---|
rbtools/commands/setup_repo.py |
---|
rbtools/commands/stamp.py |
---|
rbtools/commands/status.py |
---|
rbtools/utils/console.py |
---|