eva-shell 0.2.7__tar.gz → 0.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eva-shell-0.2.7 → eva-shell-0.2.9}/PKG-INFO +1 -1
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/__init__.py +1 -1
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/cli.py +1 -1
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/tools.py +11 -1
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva_shell.egg-info/PKG-INFO +1 -1
- {eva-shell-0.2.7 → eva-shell-0.2.9}/setup.py +1 -1
- {eva-shell-0.2.7 → eva-shell-0.2.9}/LICENSE +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/README.md +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/bin/eva +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/ap.py +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/charts.py +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/client.py +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/compl.py +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/sharedobj.py +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva4_shell/shell.py +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva_shell.egg-info/SOURCES.txt +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva_shell.egg-info/dependency_links.txt +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva_shell.egg-info/requires.txt +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/eva_shell.egg-info/top_level.txt +0 -0
- {eva-shell-0.2.7 → eva-shell-0.2.9}/setup.cfg +0 -0
|
@@ -778,7 +778,7 @@ class CLI:
|
|
|
778
778
|
elapsed = '{:.6f}'.format(max(times) - min(times))
|
|
779
779
|
else:
|
|
780
780
|
elapsed = ''
|
|
781
|
-
t = r.get('time', {}).get('
|
|
781
|
+
t = r.get('time', {}).get('created')
|
|
782
782
|
if t:
|
|
783
783
|
t = datetime.fromtimestamp(t, common.TZ).isoformat()
|
|
784
784
|
d = OrderedDict()
|
|
@@ -240,11 +240,21 @@ def print_action_result(result):
|
|
|
240
240
|
print()
|
|
241
241
|
|
|
242
242
|
|
|
243
|
+
def convert_bytes(data):
|
|
244
|
+
if isinstance(data, bytes):
|
|
245
|
+
return list(data)
|
|
246
|
+
if isinstance(data, list):
|
|
247
|
+
return [convert_bytes(item) for item in data]
|
|
248
|
+
if isinstance(data, dict):
|
|
249
|
+
return {key: convert_bytes(value) for key, value in data.items()}
|
|
250
|
+
return data
|
|
251
|
+
|
|
252
|
+
|
|
243
253
|
def print_result(data, need_header=True, name_value=False, cols=None):
|
|
244
254
|
if current_command.json:
|
|
245
255
|
from pygments import highlight, lexers, formatters
|
|
246
256
|
import json
|
|
247
|
-
j = json.dumps(data, indent=4, sort_keys=True)
|
|
257
|
+
j = json.dumps(convert_bytes(data), indent=4, sort_keys=True)
|
|
248
258
|
if can_colorize():
|
|
249
259
|
j = highlight(j, lexers.JsonLexer(), formatters.TerminalFormatter())
|
|
250
260
|
print(j)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|