-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JSON status output for all commands and errors
This commit adds JSON output to all CLI commands, if the --json switch is set. If the command does not output anything: Return an empty message. It also makes sure that error messages are output in JSON, if it is an Exception, that the CLI has already handled before. Thus the key ``error-message`` will be present if the return code is ``!= 0``. Signed-off-by: Chris Fiege <cfi@pengutronix.de>
- Loading branch information
1 parent
458bf81
commit ac42860
Showing
1 changed file
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters