Skip to content

Commit

Permalink
Merge pull request doronz88#799 from Silent-WindOPs/master
Browse files Browse the repository at this point in the history
Change the print_json to return object to be used
  • Loading branch information
doronz88 authored Jan 24, 2024
2 parents 57aa99e + 4b5a486 commit abcb264
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymobiledevice3/cli/cli_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ def print_json(buf, colored=True, default=default_json_encoder):
colorful_json = highlight(formatted_json, lexers.JsonLexer(),
formatters.TerminalTrueColorFormatter(style='stata-dark'))
print(colorful_json)
return colorful_json
else:
print(formatted_json)
return formatted_json


def print_hex(data, colored=True):
Expand Down

0 comments on commit abcb264

Please sign in to comment.