From c4c49ea672946d32fc3fde4b62bc1270e70b1c8f Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Wed, 19 Aug 2026 10:39:41 -0600 Subject: [PATCH] fix(cli): work around rich-click's patched click classes --- unshackle/commands/kv.py | 4 ++-- unshackle/core/api/routes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unshackle/commands/kv.py b/unshackle/commands/kv.py index eda7c55b..4ab3e07c 100644 --- a/unshackle/commands/kv.py +++ b/unshackle/commands/kv.py @@ -180,7 +180,7 @@ def sync( raise click.ClickException("You must provide more than one Vault to sync.") ctx.invoke( - copy, + copy.callback, to_vault_name=vaults[0], from_vault_names=vaults[1:], service=service, @@ -188,7 +188,7 @@ def sync( ) for i in range(1, len(vaults)): ctx.invoke( - copy, + copy.callback, to_vault_name=vaults[i], from_vault_names=[vaults[i - 1]], service=service, diff --git a/unshackle/core/api/routes.py b/unshackle/core/api/routes.py index e69819f7..45ce109b 100644 --- a/unshackle/core/api/routes.py +++ b/unshackle/core/api/routes.py @@ -254,7 +254,7 @@ async def services(request: web.Request) -> web.Response: cli_params = [] for param in service_module.cli.params: param_info: dict = {"name": getattr(param, "name", None)} - if isinstance(param, click.Argument): + if param.param_type_name == "argument": param_info["kind"] = "argument" param_info["required"] = param.required else: