We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c00a7a0 commit 0ec9a38Copy full SHA for 0ec9a38
sunlight/cli.py
@@ -4,6 +4,7 @@
4
5
from clint import args
6
import sunlight
7
+from sunlight.service import EntityList, EntityDict
8
9
10
def main():
@@ -23,6 +24,8 @@ def main():
23
24
fn_args = [g.split(',') for g in args.grouped.get('_')[2:]]
25
fn_args = list(itertools.chain.from_iterable(fn_args))
26
resp = getattr(service, args.get(1))(*fn_args, **params)
27
+ if isinstance(resp, EntityList) or isinstance(resp, EntityDict):
28
+ resp = resp.data
29
sys.stdout.write(json.dumps(resp, indent=2) + '\n')
30
31
else:
0 commit comments