We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef2ec2b commit c070d52Copy full SHA for c070d52
1 file changed
ape_safe/_cli/modules.py
@@ -21,19 +21,17 @@ def modules():
21
22
@modules.command("list", cls=ConnectedProviderCommand)
23
@network_option()
24
-@safe_cli_ctx()
25
-@safe_option
26
-def _list(cli_ctx, safe: "SafeAccount") -> None:
+@safe_argument
+def _list(safe: "SafeAccount"):
27
"""List all modules enabled for SAFE"""
28
for module in safe.modules:
29
click.echo(repr(module))
30
31
32
@modules.command(cls=ConnectedProviderCommand)
33
34
35
36
-def guard(cli_ctx, safe: "SafeAccount") -> None:
+def guard(safe: "SafeAccount"):
37
"""Show module guard (if enabled) for SAFE"""
38
if guard := safe.modules.guard:
39
click.echo(f"Guard: {guard}")
0 commit comments