mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 12:05:07 +00:00
fix(cli): work around rich-click's patched click classes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user