Further work on PIO Remote

This commit is contained in:
Ivan Kravets
2016-10-04 01:24:38 +03:00
parent 810b6d807f
commit 00aeaf021d
6 changed files with 51 additions and 10 deletions

View File

@@ -30,12 +30,25 @@ from platformio.pioplus import pioplus_call
@click.group("remote", short_help="PIO Remote")
def cli():
@click.option("-a", "--agent", multiple=True)
def cli(**kwargs):
pass
@cli.command("agent", short_help="Host agent")
@cli.group("agent", short_help="Start new agent or list active")
def remote_agent():
pass
@remote_agent.command("start", short_help="Start agent")
@click.option("-n", "--name")
@click.option("-s", "--share")
def remote_agent_start(**kwargs):
pioplus_call(sys.argv[1:])
@remote_agent.command("list", short_help="List active agents")
def remote_agent_list():
pioplus_call(sys.argv[1:])