Skip to content

Commit

Permalink
No need func in command
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcertora committed Jan 7, 2025
1 parent 5bf220a commit 91d2fc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
19 changes: 6 additions & 13 deletions Quorum/entry_points/quorum_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class Command(BaseModel):
name: str
help: str
arguments: list[cli_args.Argument]
func: Optional[Callable[[argparse.Namespace], None]]


COMMAND_REGISTRY = [
Expand All @@ -22,23 +21,20 @@ 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",
help="Check proposals by proposal ID.",
arguments=[
cli_args.CUSTOMER_ARGUMENT,
cli_args.PROPOSAL_ID_ARGUMENT
],
func=None
]
),
Command(
name="create-report",
Expand All @@ -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",
Expand All @@ -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]
)
]

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20250107.200603.277347
20250107.201100.319230

0 comments on commit 91d2fc4

Please sign in to comment.