From 91d2fc4dffdcc1c837b0d35ec01ab57bb02627c2 Mon Sep 17 00:00:00 2001 From: niv vaknin Date: Tue, 7 Jan 2025 20:10:59 +0200 Subject: [PATCH] No need func in command --- Quorum/entry_points/quorum_cli.py | 19 ++++++------------- version | 2 +- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/Quorum/entry_points/quorum_cli.py b/Quorum/entry_points/quorum_cli.py index 64f6a7c..d6cb7ea 100644 --- a/Quorum/entry_points/quorum_cli.py +++ b/Quorum/entry_points/quorum_cli.py @@ -11,7 +11,6 @@ class Command(BaseModel): name: str help: str arguments: list[cli_args.Argument] - func: Optional[Callable[[argparse.Namespace], None]] COMMAND_REGISTRY = [ @@ -22,14 +21,12 @@ class Command(BaseModel): cli_args.CUSTOMER_ARGUMENT, cli_args.CHAIN_ARGUMENT, cli_args.PROPOSAL_ADDRESS_ARGUMENT - ], - func=None + ] ), Command( name="validate-batch", help="Run a batch check from a JSON config file.", - arguments=[cli_args.CONFIG_ARGUMENT], - func=None + arguments=[cli_args.CONFIG_ARGUMENT] ), Command( name="validate-by-id", @@ -37,8 +34,7 @@ class Command(BaseModel): arguments=[ cli_args.CUSTOMER_ARGUMENT, cli_args.PROPOSAL_ID_ARGUMENT - ], - func=None + ] ), Command( name="create-report", @@ -47,8 +43,7 @@ class Command(BaseModel): cli_args.PROPOSAL_ID_ARGUMENT, cli_args.TEMPLATE_ARGUMENT, cli_args.GENERATE_REPORT_PATH_ARGUMENT - ], - func=None + ] ), Command( name="validate-ipfs", @@ -58,14 +53,12 @@ class Command(BaseModel): cli_args.CHAIN_ARGUMENT, cli_args.PROPOSAL_ADDRESS_ARGUMENT, cli_args.PROMPT_TEMPLATES_ARGUMENT - ], - func=None + ] ), Command( name="setup", help="Initial Quorum environment setup.", - arguments=[cli_args.WORKING_DIR_ARGUMENT], - func=None + arguments=[cli_args.WORKING_DIR_ARGUMENT] ) ] diff --git a/version b/version index b2c73a0..1e1706a 100644 --- a/version +++ b/version @@ -1 +1 @@ -20250107.200603.277347 +20250107.201100.319230