fix cli formatting

This commit is contained in:
Lex Berezhny 2018-07-26 21:19:29 -04:00 committed by Jack Robison
parent 9b417486a9
commit 18ecbba87c
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1,4 +1,5 @@
import sys
import json
import asyncio
import aiohttp
from docopt import docopt
@ -12,7 +13,7 @@ async def execute_command(command, args):
message = {'method': command, 'params': args}
async with aiohttp.ClientSession() as session:
async with session.get('http://localhost:5279/lbryapi', json=message) as resp:
print(await resp.json())
print(json.dumps(await resp.json(), indent=4))
def print_help():