fix: config.py: add more properties for config_get?full

This commit is contained in:
Tagadda 2022-02-16 13:46:50 +00:00
parent c99729d062
commit 0ff9818ebf

View file

@ -289,6 +289,8 @@ class ConfigPanel:
question_class = ARGUMENTS_TYPE_PARSERS[option.get("type", "string")]
# FIXME : maybe other properties should be taken from the question, not just choices ?.
option["choices"] = question_class(option).choices
option["default"] = question_class(option).default
option["pattern"] = question_class(option).pattern
else:
result[key] = {"ask": ask}
if "current_value" in option:
@ -603,7 +605,7 @@ class ConfigPanel:
}
@property
def future_values(self): # TODO put this in ConfigPanel ?
def future_values(self):
return {**self.values, **self.new_values}
def __getattr__(self, name):