Skip to content

Commit

Permalink
change the print_json to return object to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
Silent-WindOPs committed Jan 23, 2024
1 parent 57aa99e commit 7e61a9f
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 7e61a9f

Please sign in to comment.