forked from LBRYCommunity/lbry-sdk
fix cli formatting
This commit is contained in:
parent
9b417486a9
commit
18ecbba87c
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import sys
|
import sys
|
||||||
|
import json
|
||||||
import asyncio
|
import asyncio
|
||||||
import aiohttp
|
import aiohttp
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
|
@ -12,7 +13,7 @@ async def execute_command(command, args):
|
||||||
message = {'method': command, 'params': args}
|
message = {'method': command, 'params': args}
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.get('http://localhost:5279/lbryapi', json=message) as resp:
|
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():
|
def print_help():
|
||||||
|
|
Loading…
Add table
Reference in a new issue