API/vars: use string based interfaces to get and set vars to avoid state mutations
This commit is contained in:
committed by
hsjobeki
parent
85d03f106b
commit
06869a4d27
@@ -260,7 +260,11 @@ def _ask_prompts(
|
||||
prompt_values: dict[str, str] = {}
|
||||
for prompt in generator.prompts:
|
||||
var_id = f"{generator.name}/{prompt.name}"
|
||||
prompt_values[prompt.name] = ask(var_id, prompt.prompt_type)
|
||||
prompt_values[prompt.name] = ask(
|
||||
var_id,
|
||||
prompt.prompt_type,
|
||||
prompt.description if prompt.description != prompt.name else None,
|
||||
)
|
||||
return prompt_values
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user