Files
chia-blockchain/chia/cmds/plotters.py
T
ca1a53e42f Convert All CLI Commands to using async generators (#15628)
* add new get_wallet_client generator

* switch plotnft code to new generator

* change coin commands over to new generator

* remove extra imports

* change to 100% new async generator

* remove execute_with_wallet func

* Enable mypy on almost every cli file.

* Rename variables from yes

* switch to kwargs on really long functions & fix default list

* fix missing None & Fix syntax for unrelated change

* make more functions kwarg only

* Apply suggestions from code review

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* final review changes

* oops fix backwards compatibility

* drop default, hint sequence

* List (for now...)

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-07-07 12:26:45 -05:00

18 lines
430 B
Python

from __future__ import annotations
import click
from chia.plotters.plotters import call_plotters
@click.command(
"plotters",
help="Advanced plotting options",
context_settings={"ignore_unknown_options": True},
add_help_option=False,
)
@click.pass_context
@click.argument("args", nargs=-1)
def plotters_cmd(ctx: click.Context, args: tuple[click.Argument]) -> None:
call_plotters(ctx.obj["root_path"], args)