From 5cdd0b35834333644729f5b02b8921ed4e321e5d Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Wed, 1 Jul 2026 23:08:08 -0600 Subject: [PATCH] feat(api): expose choice values and multiple flag in service cli_params --- unshackle/core/api/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unshackle/core/api/routes.py b/unshackle/core/api/routes.py index e1f3f348..693b2a1f 100644 --- a/unshackle/core/api/routes.py +++ b/unshackle/core/api/routes.py @@ -251,6 +251,9 @@ async def services(request: web.Request) -> web.Response: param_info["default"] = default param_info["help"] = getattr(param, "help", None) param_info["type"] = param.type.name if hasattr(param.type, "name") else str(param.type) + if isinstance(param.type, click.Choice): + param_info["choices"] = list(param.type.choices) + param_info["multiple"] = getattr(param, "multiple", False) cli_params.append(param_info) service_data["cli_params"] = cli_params