Files
chia-blockchain/chia/cmds/start.py
T
JeffandGitHub e5d048f1de Merge commit with main (9ff3fc993f) (#11137)
* Merged with main (9ff3fc993f)

* Linter and some test fixes

* isort, linting, test fix

* Fixes and bumped the GUI to point to nftdev

* Couple of fixes
2022-04-14 12:02:42 -07:00

15 lines
521 B
Python

import click
from chia.util.service_groups import all_groups
@click.command("start", short_help="Start service groups")
@click.option("-r", "--restart", is_flag=True, type=bool, help="Restart running services")
@click.argument("group", type=click.Choice(list(all_groups())), nargs=-1, required=True)
@click.pass_context
def start_cmd(ctx: click.Context, restart: bool, group: str) -> None:
import asyncio
from .start_funcs import async_start
asyncio.run(async_start(ctx.obj["root_path"], group, restart))