feat(api): expose choice values and multiple flag in service cli_params

This commit is contained in:
imSp4rky
2026-07-01 23:08:08 -06:00
parent 7fdd514e18
commit 5cdd0b3583
+3
View File
@@ -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