feat: support transitive
This commit is contained in:
parent
246ad6c7e0
commit
c0cae3fc6e
65 changed files with 1307 additions and 181 deletions
|
|
@ -222,7 +222,7 @@ class Annotator(Walk):
|
||||||
if "type" in data or "description" in data:
|
if "type" in data or "description" in data:
|
||||||
one_is_calculation = True
|
one_is_calculation = True
|
||||||
datas.append(data)
|
datas.append(data)
|
||||||
if one_is_calculation:
|
if one_is_calculation and datas:
|
||||||
self.objectspace.informations.add(
|
self.objectspace.informations.add(
|
||||||
path,
|
path,
|
||||||
f"{prop}_calculation",
|
f"{prop}_calculation",
|
||||||
|
|
@ -287,16 +287,9 @@ class Annotator(Walk):
|
||||||
"propertyerror": values.propertyerror,
|
"propertyerror": values.propertyerror,
|
||||||
}
|
}
|
||||||
if isinstance(values, InformationCalculation):
|
if isinstance(values, InformationCalculation):
|
||||||
value, variable_path = self.calculation_to_information_information(
|
return self.calculation_to_information_information(
|
||||||
values, version, path
|
values, version, path
|
||||||
)
|
)
|
||||||
ret = {
|
|
||||||
"type": "information",
|
|
||||||
"value": value,
|
|
||||||
}
|
|
||||||
if variable_path:
|
|
||||||
ret["path"] = variable_path
|
|
||||||
return ret
|
|
||||||
if isinstance(values, (IdentifierCalculation, IdentifierPropertyCalculation)):
|
if isinstance(values, (IdentifierCalculation, IdentifierPropertyCalculation)):
|
||||||
return {
|
return {
|
||||||
"type": "identifier",
|
"type": "identifier",
|
||||||
|
|
@ -327,38 +320,48 @@ class Annotator(Walk):
|
||||||
values.namespace,
|
values.namespace,
|
||||||
values.xmlfiles,
|
values.xmlfiles,
|
||||||
)[0]
|
)[0]
|
||||||
if isinstance(values, VariableCalculation) and values.optional and not variable:
|
if not variable or (isinstance(values, VariableCalculation) and values.optional and not variable):
|
||||||
return None
|
return None
|
||||||
if variable:
|
values_calculation = {"path": variable.path}
|
||||||
variable_path = variable.path
|
|
||||||
if prop in PROPERTY_ATTRIBUTE:
|
if prop in PROPERTY_ATTRIBUTE:
|
||||||
# get comparative value
|
# get comparative value
|
||||||
|
# values_calculation["transitive"] = values.propertyerror == "transitive"
|
||||||
if values.when_not is not undefined:
|
if values.when_not is not undefined:
|
||||||
value = values.when_not
|
values_calculation["type"] = "condition"
|
||||||
condition = "when_not"
|
values_calculation["value"] = values.when_not
|
||||||
|
values_calculation["condition"] = "when_not"
|
||||||
elif values.when is not undefined:
|
elif values.when is not undefined:
|
||||||
value = values.when
|
values_calculation["type"] = "condition"
|
||||||
condition = "when"
|
values_calculation["value"] = values.when
|
||||||
|
values_calculation["condition"] = "when"
|
||||||
|
elif values.propertyerror == "transitive":
|
||||||
|
values_calculation["type"] = "transitive"
|
||||||
else:
|
else:
|
||||||
value = True
|
values_calculation["type"] = "condition"
|
||||||
condition = "when"
|
values_calculation["value"] = True
|
||||||
|
values_calculation["condition"] = "when"
|
||||||
# set message
|
|
||||||
values_calculation = (variable_path, value, condition)
|
|
||||||
else:
|
else:
|
||||||
values_calculation = variable_path
|
values_calculation["type"] = "variable"
|
||||||
|
|
||||||
return values_calculation
|
return values_calculation
|
||||||
|
|
||||||
def calculation_to_information_information(
|
def calculation_to_information_information(
|
||||||
self, values, version: str, path: str
|
self, values, version: str, path: str
|
||||||
) -> Union[str, bool]:
|
) -> Union[str, bool]:
|
||||||
|
values_calculation = {"type": "information",
|
||||||
|
"information": values.information,
|
||||||
|
}
|
||||||
if values.variable:
|
if values.variable:
|
||||||
variable_path = self.get_path_from_variable(values, version, path)
|
variable = self.objectspace.paths.get_with_dynamic(
|
||||||
return _('the value of the information "{0}" of the variable "{{0}}"').format(
|
values.variable,
|
||||||
values.information
|
path,
|
||||||
), variable_path
|
values.version,
|
||||||
return _('the value of the global information "{0}"').format(values.information), None
|
values.namespace,
|
||||||
|
values.xmlfiles,
|
||||||
|
)[0]
|
||||||
|
if not variable:
|
||||||
|
return None
|
||||||
|
values_calculation["path"] = variable.path
|
||||||
|
return values_calculation
|
||||||
|
|
||||||
def calculation_to_information_identifier(
|
def calculation_to_information_identifier(
|
||||||
self, values, prop: str, version: str
|
self, values, prop: str, version: str
|
||||||
|
|
|
||||||
|
|
@ -226,9 +226,9 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
calculation = child.information.get(f"{hidden_property}_calculation", None)
|
calculation = child.information.get(f"{hidden_property}_calculation", None)
|
||||||
if calculation and calculation.get("type") == "variable":
|
if calculation and calculation.get("type") == "variable" and calculation["value"]["type"] == "condition":
|
||||||
variable_path, value, condition = calculation["value"]
|
condition = calculation["value"]
|
||||||
variable = self.true_config.forcepermissive.option(variable_path)
|
variable = self.true_config.forcepermissive.option(condition["path"])
|
||||||
try:
|
try:
|
||||||
variable.value.get()
|
variable.value.get()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
@ -239,7 +239,9 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
except VariableCalculationDependencyError:
|
except VariableCalculationDependencyError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if (condition == "when" and value == variable_value) or (condition == "when_not" and value != variable_value):
|
condition_type = condition["condition"]
|
||||||
|
value = condition["value"]
|
||||||
|
if (condition_type == "when" and value == variable_value) or (condition_type == "when_not" and value != variable_value):
|
||||||
return True
|
return True
|
||||||
if not child.isoptiondescription():
|
if not child.isoptiondescription():
|
||||||
for hidden_property in self.disabled_modes:
|
for hidden_property in self.disabled_modes:
|
||||||
|
|
@ -685,7 +687,7 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
return values
|
return values
|
||||||
return self._calculation_to_string(child, calculation, prop)
|
return self._calculation_to_string(child, calculation, prop)
|
||||||
|
|
||||||
def _calculation_to_string(self, child, calculation, prop):
|
def _calculation_to_string(self, child, calculation, attribute_type):
|
||||||
if "description" in calculation:
|
if "description" in calculation:
|
||||||
values = calculation
|
values = calculation
|
||||||
if self.document_a_type and "variables" in values:
|
if self.document_a_type and "variables" in values:
|
||||||
|
|
@ -695,24 +697,27 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
elif "type" not in calculation:
|
elif "type" not in calculation:
|
||||||
values = calculation["value"]
|
values = calculation["value"]
|
||||||
elif calculation["type"] == "jinja":
|
elif calculation["type"] == "jinja":
|
||||||
values = self._calculation_jinja_to_string(child, calculation, prop)
|
values = self._calculation_jinja_to_string(child, calculation, attribute_type)
|
||||||
elif calculation["type"] == "variable":
|
elif calculation["type"] == "variable":
|
||||||
values = self._calculation_variable_to_string(child, calculation, prop)
|
values = self._calculation_variable_to_string(child, calculation, attribute_type)
|
||||||
elif calculation["type"] == "identifier":
|
elif calculation["type"] == "identifier":
|
||||||
if prop in PROPERTY_ATTRIBUTE:
|
if attribute_type in PROPERTY_ATTRIBUTE:
|
||||||
values = calculation["value"]
|
values = calculation["value"]
|
||||||
else:
|
else:
|
||||||
values = _("the value of the identifier")
|
values = _("the value of the identifier")
|
||||||
elif calculation["type"] == "information":
|
elif calculation["type"] == "information":
|
||||||
values = calculation["value"]
|
|
||||||
if "path" in calculation:
|
if "path" in calculation:
|
||||||
variable_path = self.doc_path(calculation["path"])
|
variable_path = self.doc_path(calculation["path"])
|
||||||
values = values.format(variable_path)
|
values = _('the value of the information "{0}" of the variable "{1}"').format(
|
||||||
|
calculation["information"], variable_path
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
values = _('the value of the global information "{0}"').format(calculation["information"])
|
||||||
else:
|
else:
|
||||||
values = _("the value of the {0}").format(calculation["type"])
|
values = _("the value of the {0}").format(calculation["type"])
|
||||||
return values
|
return values
|
||||||
|
|
||||||
def _calculation_jinja_to_string(self, child, calculation, prop):
|
def _calculation_jinja_to_string(self, child, calculation, attribute_type):
|
||||||
if calculation["value"] is not True:
|
if calculation["value"] is not True:
|
||||||
values = calculation["value"]
|
values = calculation["value"]
|
||||||
else:
|
else:
|
||||||
|
|
@ -725,7 +730,7 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
warning = _(
|
warning = _(
|
||||||
'"{0}" is a calculation for {1} but has no description in {2}'
|
'"{0}" is a calculation for {1} but has no description in {2}'
|
||||||
).format(
|
).format(
|
||||||
prop,
|
attribute_type,
|
||||||
self.doc_path(child.path()),
|
self.doc_path(child.path()),
|
||||||
display_xmlfiles(child.information.get("ymlfiles")),
|
display_xmlfiles(child.information.get("ymlfiles")),
|
||||||
)
|
)
|
||||||
|
|
@ -735,107 +740,16 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
)
|
)
|
||||||
return values
|
return values
|
||||||
|
|
||||||
def _calculation_variable_to_string(self, child, calculation, prop):
|
def _calculation_variable_to_string(self, child, calculation, attribute_type):
|
||||||
if prop in PROPERTY_ATTRIBUTE:
|
if attribute_type in PROPERTY_ATTRIBUTE:
|
||||||
values = self._calculation_variable_to_string_known_property(child, calculation, prop)
|
func = self._calculation_variable_to_string_known_property
|
||||||
else:
|
else:
|
||||||
if calculation["optional"]:
|
func = self._calculation_variable_to_string_not_properties
|
||||||
path = calculation["value"]
|
return func(child, calculation, attribute_type)
|
||||||
if "{{ identifier }}" in path:
|
|
||||||
if path not in self.dynamic_paths:
|
|
||||||
return None
|
|
||||||
else:
|
|
||||||
try:
|
|
||||||
self.true_config.forcepermissive.option(path).get()
|
|
||||||
except AttributeError:
|
|
||||||
return None
|
|
||||||
if not calculation["optional"]:
|
|
||||||
true_msg = _('the value of the variable "{0}"')
|
|
||||||
else:
|
|
||||||
true_msg = _('the value of the variable "{0}" if it is defined')
|
|
||||||
if "{{ identifier }}" in calculation["ori_path"]:
|
|
||||||
values = []
|
|
||||||
all_is_undocumented = False
|
|
||||||
for cpath, description, identifiers in self.get_annotation_variable(calculation["value"], calculation["ori_path"]):
|
|
||||||
if cpath:
|
|
||||||
all_is_undocumented = False
|
|
||||||
path_obj = {
|
|
||||||
"path": self.doc_path(cpath),
|
|
||||||
}
|
|
||||||
if identifiers:
|
|
||||||
path_obj["identifiers"] = identifiers
|
|
||||||
values.append({
|
|
||||||
"message": true_msg,
|
|
||||||
"path": path_obj,
|
|
||||||
"description": description,
|
|
||||||
})
|
|
||||||
else:
|
|
||||||
if all_is_undocumented is None:
|
|
||||||
all_is_undocumented = True
|
|
||||||
values.append(_("the value of an undocumented variable"))
|
|
||||||
if all_is_undocumented:
|
|
||||||
if len(values) > 1:
|
|
||||||
values = _("the values of undocumented variables")
|
|
||||||
else:
|
|
||||||
values = values[0]
|
|
||||||
else:
|
|
||||||
# FIXME A MUTUALISER AUSSI
|
|
||||||
variable_path = calculation["ori_path"]
|
|
||||||
variable = self.true_config.unrestraint.option(variable_path)
|
|
||||||
try:
|
|
||||||
isfollower = variable.isfollower()
|
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
if not isfollower and self.is_inaccessible_user_data(variable):
|
|
||||||
try:
|
|
||||||
uncalculated = variable.value.get(uncalculated=True)
|
|
||||||
except PropertiesOptionError:
|
|
||||||
true_msg = None
|
|
||||||
else:
|
|
||||||
if uncalculated and not isinstance(
|
|
||||||
uncalculated, Calculation
|
|
||||||
):
|
|
||||||
if isinstance(uncalculated, list):
|
|
||||||
true_msg = {
|
|
||||||
"submessage": _(
|
|
||||||
"(from an undocumented variable)"
|
|
||||||
),
|
|
||||||
"values": uncalculated,
|
|
||||||
}
|
|
||||||
else:
|
|
||||||
if not isinstance(uncalculated, str):
|
|
||||||
uncalculated = dump(uncalculated)
|
|
||||||
true_msg = _(
|
|
||||||
"{0} (from an undocumented variable)"
|
|
||||||
).format(uncalculated)
|
|
||||||
else:
|
|
||||||
true_msg = _("depends on an undocumented variable")
|
|
||||||
if true_msg:
|
|
||||||
if isinstance(true_msg, dict):
|
|
||||||
values = true_msg
|
|
||||||
else:
|
|
||||||
try:
|
|
||||||
description = self._convert_description(self.true_config.option(calculation["ori_path"]).description(uncalculated=True), "description", its_a_path=False)
|
|
||||||
except AttributeError:
|
|
||||||
description = calculation["ori_path"]
|
|
||||||
values = {
|
|
||||||
"message": true_msg,
|
|
||||||
"path": {
|
|
||||||
"path": self.doc_path(calculation["ori_path"]),
|
|
||||||
},
|
|
||||||
"description": description,
|
|
||||||
}
|
|
||||||
else:
|
|
||||||
values = None
|
|
||||||
return values
|
|
||||||
|
|
||||||
def _calculation_variable_to_string_known_property(self, child, calculation, prop):
|
def _calculation_variable_to_string_known_property(self, child, calculation, prop):
|
||||||
variable_path, value, condition = calculation["value"]
|
condition = calculation["value"]
|
||||||
if isinstance(value, str):
|
variable_path = condition["path"]
|
||||||
str_value = value
|
|
||||||
else:
|
|
||||||
str_value = dump(value)
|
|
||||||
values = []
|
values = []
|
||||||
if "{{ identifier }}" in calculation["ori_path"] or "{{ identifier }}" in variable_path:
|
if "{{ identifier }}" in calculation["ori_path"] or "{{ identifier }}" in variable_path:
|
||||||
variables = self.get_annotation_variable(variable_path, calculation["ori_path"])
|
variables = self.get_annotation_variable(variable_path, calculation["ori_path"])
|
||||||
|
|
@ -853,41 +767,46 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
description = self._convert_description(option.description(uncalculated=True), "description", its_a_path=False)
|
description = self._convert_description(option.description(uncalculated=True), "description", its_a_path=False)
|
||||||
variables = [[variable_path, description, None]]
|
variables = [[variable_path, description, None]]
|
||||||
for cpath, description, identifiers in variables:
|
for cpath, description, identifiers in variables:
|
||||||
if calculation["propertyerror"] == "transitive":
|
if not cpath:
|
||||||
if not cpath:
|
# we cannot access to this variable, so try with permissive
|
||||||
return True
|
if condition["type"] == "transitive":
|
||||||
|
value = None
|
||||||
else:
|
else:
|
||||||
print(variable_path)
|
value = condition["value"]
|
||||||
continue
|
option = self.true_config.forcepermissive.option(variable_path)
|
||||||
pass
|
|
||||||
elif not cpath:
|
|
||||||
# we cannot access to this variable so try with permissive
|
|
||||||
variable = self.true_config.forcepermissive.option(variable_path)
|
|
||||||
try:
|
try:
|
||||||
variable_value = self._get_unmodified_default_value(variable)
|
variable_value = self._get_unmodified_default_value(option)
|
||||||
except PropertiesOptionError as err:
|
except PropertiesOptionError as err:
|
||||||
if calculation["propertyerror"] is True:
|
if calculation["propertyerror"] is True:
|
||||||
raise err from err
|
raise err from err
|
||||||
variable_value = value
|
if calculation["propertyerror"] == "transitive":
|
||||||
|
return True
|
||||||
|
return False
|
||||||
except VariableCalculationDependencyError:
|
except VariableCalculationDependencyError:
|
||||||
values.append(_("depends on an undocumented variable"))
|
values.append(_("depends on an undocumented variable"))
|
||||||
continue
|
continue
|
||||||
except AttributeError as err:
|
except AttributeError as err:
|
||||||
return calculation.get("default", False)
|
return calculation.get("default", False)
|
||||||
if (
|
if condition["type"] == "transitive":
|
||||||
condition == "when"
|
|
||||||
and value == variable_value
|
|
||||||
or condition == "when_not"
|
|
||||||
and value != variable_value
|
|
||||||
):
|
|
||||||
if prop in HIDDEN_PROPERTIES:
|
|
||||||
return False
|
|
||||||
# always "prop"
|
|
||||||
return True
|
return True
|
||||||
# never "prop"
|
if prop in HIDDEN_PROPERTIES:
|
||||||
|
condition_type = condition["condition"]
|
||||||
|
if (
|
||||||
|
condition_type == "when"
|
||||||
|
and value == variable_value
|
||||||
|
or condition_type == "when_not"
|
||||||
|
and value != variable_value
|
||||||
|
):
|
||||||
|
# always "prop"
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
if condition["type"] == "transitive":
|
||||||
|
msg = _(
|
||||||
|
'when the variable "{{0}}" is {0}"'
|
||||||
|
).format(prop)
|
||||||
else:
|
else:
|
||||||
if condition == "when_not":
|
condition_type = condition["condition"]
|
||||||
|
if condition_type == "when_not":
|
||||||
if calculation["optional"]:
|
if calculation["optional"]:
|
||||||
if not calculation["propertyerror"]:
|
if not calculation["propertyerror"]:
|
||||||
msg = _(
|
msg = _(
|
||||||
|
|
@ -915,21 +834,118 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
msg = _('when the variable "{{0}}" is accessible and has the value "{0}"')
|
msg = _('when the variable "{{0}}" is accessible and has the value "{0}"')
|
||||||
else:
|
else:
|
||||||
msg = _('when the variable "{{0}}" has the value "{0}"')
|
msg = _('when the variable "{{0}}" has the value "{0}"')
|
||||||
path_obj = {
|
value = condition["value"]
|
||||||
"path": self.doc_path(variable_path),
|
if isinstance(value, str):
|
||||||
}
|
str_value = value
|
||||||
if identifiers:
|
else:
|
||||||
path_obj["identifiers"] = identifiers
|
str_value = dump(value)
|
||||||
|
msg = msg.format(str_value)
|
||||||
|
path_obj = {
|
||||||
|
"path": self.doc_path(variable_path),
|
||||||
|
}
|
||||||
|
if identifiers:
|
||||||
|
path_obj["identifiers"] = identifiers
|
||||||
|
|
||||||
values.append({
|
values.append({
|
||||||
"message": msg.format(str_value),
|
"message": msg,
|
||||||
"path": path_obj,
|
"path": path_obj,
|
||||||
"description": description,
|
"description": description,
|
||||||
})
|
})
|
||||||
if len(values) == 1:
|
if len(values) == 1:
|
||||||
return values[0]
|
return values[0]
|
||||||
return values
|
return values
|
||||||
|
|
||||||
|
def _calculation_variable_to_string_not_properties(self, child, calculation, attribute_type):
|
||||||
|
if calculation["optional"]:
|
||||||
|
path = calculation["value"]["path"]
|
||||||
|
if "{{ identifier }}" in path:
|
||||||
|
if path not in self.dynamic_paths:
|
||||||
|
return None
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
self.true_config.forcepermissive.option(path).get()
|
||||||
|
except AttributeError:
|
||||||
|
return None
|
||||||
|
true_msg = _('the value of the variable "{0}" if it is defined')
|
||||||
|
else:
|
||||||
|
true_msg = _('the value of the variable "{0}"')
|
||||||
|
if "{{ identifier }}" in calculation["ori_path"]:
|
||||||
|
values = []
|
||||||
|
all_is_undocumented = False
|
||||||
|
for cpath, description, identifiers in self.get_annotation_variable(calculation["value"]["path"], calculation["ori_path"]):
|
||||||
|
if cpath:
|
||||||
|
all_is_undocumented = False
|
||||||
|
path_obj = {
|
||||||
|
"path": self.doc_path(cpath),
|
||||||
|
}
|
||||||
|
if identifiers:
|
||||||
|
path_obj["identifiers"] = identifiers
|
||||||
|
values.append({
|
||||||
|
"message": true_msg,
|
||||||
|
"path": path_obj,
|
||||||
|
"description": description,
|
||||||
|
})
|
||||||
|
else:
|
||||||
|
if all_is_undocumented is None:
|
||||||
|
all_is_undocumented = True
|
||||||
|
values.append(_("the value of an undocumented variable"))
|
||||||
|
if all_is_undocumented:
|
||||||
|
if len(values) > 1:
|
||||||
|
values = _("the values of undocumented variables")
|
||||||
|
else:
|
||||||
|
values = values[0]
|
||||||
|
else:
|
||||||
|
# FIXME A MUTUALISER AUSSI
|
||||||
|
variable_path = calculation["ori_path"]
|
||||||
|
variable = self.true_config.unrestraint.option(variable_path)
|
||||||
|
try:
|
||||||
|
isfollower = variable.isfollower()
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
if not isfollower and self.is_inaccessible_user_data(variable):
|
||||||
|
try:
|
||||||
|
uncalculated = variable.value.get(uncalculated=True)
|
||||||
|
except PropertiesOptionError:
|
||||||
|
true_msg = None
|
||||||
|
else:
|
||||||
|
if uncalculated and not isinstance(
|
||||||
|
uncalculated, Calculation
|
||||||
|
):
|
||||||
|
if isinstance(uncalculated, list):
|
||||||
|
true_msg = {
|
||||||
|
"submessage": _(
|
||||||
|
"(from an undocumented variable)"
|
||||||
|
),
|
||||||
|
"values": uncalculated,
|
||||||
|
}
|
||||||
|
else:
|
||||||
|
if not isinstance(uncalculated, str):
|
||||||
|
uncalculated = dump(uncalculated)
|
||||||
|
true_msg = _(
|
||||||
|
"{0} (from an undocumented variable)"
|
||||||
|
).format(uncalculated)
|
||||||
|
else:
|
||||||
|
true_msg = _("depends on an undocumented variable")
|
||||||
|
if true_msg:
|
||||||
|
if isinstance(true_msg, dict):
|
||||||
|
values = true_msg
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
description = self._convert_description(self.true_config.option(calculation["ori_path"]).description(uncalculated=True), "description", its_a_path=False)
|
||||||
|
except AttributeError:
|
||||||
|
description = calculation["ori_path"]
|
||||||
|
values = {
|
||||||
|
"message": true_msg,
|
||||||
|
"path": {
|
||||||
|
"path": self.doc_path(calculation["ori_path"]),
|
||||||
|
},
|
||||||
|
"description": description,
|
||||||
|
}
|
||||||
|
else:
|
||||||
|
values = None
|
||||||
|
return values
|
||||||
|
|
||||||
def get_annotation_variable(self, current_path, ori_path):
|
def get_annotation_variable(self, current_path, ori_path):
|
||||||
if current_path == ori_path:
|
if current_path == ori_path:
|
||||||
regexp = None
|
regexp = None
|
||||||
|
|
@ -959,7 +975,7 @@ class RougailOutputDoc(Examples, Changelog):
|
||||||
if not calculation:
|
if not calculation:
|
||||||
return child.value.get()
|
return child.value.get()
|
||||||
if calculation["type"] == "variable":
|
if calculation["type"] == "variable":
|
||||||
variable = self.true_config.forcepermissive.option(calculation["value"])
|
variable = self.true_config.forcepermissive.option(calculation["value"]["path"])
|
||||||
if variable and self.is_inaccessible_user_data(variable):
|
if variable and self.is_inaccessible_user_data(variable):
|
||||||
return self._get_unmodified_default_value(variable)
|
return self._get_unmodified_default_value(variable)
|
||||||
raise VariableCalculationDependencyError()
|
raise VariableCalculationDependencyError()
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
|====
|
|====
|
||||||
| Variable | Description
|
| Variable | Description
|
||||||
| **var1** +
|
| **var1** +
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` | My var1. +
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` | My var1.
|
||||||
**Default**: the value of the variable "a.unknown.variable"
|
|
||||||
| **var2** +
|
| **var2** +
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` | My var2. +
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` | My var2. +
|
||||||
**Default**: var calculated
|
**Default**: var calculated
|
||||||
|
|
@ -13,17 +12,17 @@
|
||||||
| **var4** +
|
| **var4** +
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` | My var4.
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` | My var4.
|
||||||
| **var5** +
|
| **var5** +
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` | My var5. +
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` | My var5.
|
||||||
**Default**: the value of the information "info" of the variable "a.unknown.variable"
|
|
||||||
| **var6** +
|
| **var6** +
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `mandatory` | My var6. +
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `mandatory` | My var6. +
|
||||||
**Choices**: the value of the variable "a.unknown.variable"
|
**Choices**:
|
||||||
|
|
||||||
|
*
|
||||||
| **var7** +
|
| **var7** +
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `mandatory` | My var7. +
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `mandatory` | My var7. +
|
||||||
**Choices**:
|
**Choices**:
|
||||||
|
|
||||||
* the value of the variable "a.unknown.variable1"
|
*
|
||||||
* the value of the variable "a.unknown.variable2"
|
|
||||||
| **var8** +
|
| **var8** +
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `mandatory` | My var8. +
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `mandatory` | My var8. +
|
||||||
**Choices**: the a.unknown.variable values
|
**Choices**: the a.unknown.variable values
|
||||||
|
|
@ -36,7 +35,7 @@
|
||||||
|
|
||||||
This family builds families dynamically. +
|
This family builds families dynamically. +
|
||||||
**Path**: var___example__ +
|
**Path**: var___example__ +
|
||||||
**Identifiers**: the value of the variable "a.unknown.variable"
|
**Identifiers**: example
|
||||||
====
|
====
|
||||||
[cols="1a,1a"]
|
[cols="1a,1a"]
|
||||||
|====
|
|====
|
||||||
|
|
|
||||||
14
tests/results/test/04_5disabled_calculation_variable12.adoc
Normal file
14
tests/results/test/04_5disabled_calculation_variable12.adoc
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
[cols="1a,1a"]
|
||||||
|
|====
|
||||||
|
| Variable | Description
|
||||||
|
| **condition** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. +
|
||||||
|
**Default**: true
|
||||||
|
| **variable1** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A variable. +
|
||||||
|
**Disabled**: when the variable "condition" has the value "true"
|
||||||
|
| **variable2** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. +
|
||||||
|
**Disabled**: when the variable "variable1" is disabled"
|
||||||
|
|====
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="condition" name="condition">condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="variable1" name="variable1">variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#condition)" has the value "true" |
|
||||||
|
| **<a id="variable2" name="variable2">variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#variable1)" is disabled" |
|
||||||
|
|
||||||
11
tests/results/test/04_5disabled_calculation_variable12.html
Normal file
11
tests/results/test/04_5disabled_calculation_variable12.html
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr><th>Variable </th><th>Description </th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td><b>condition</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>boolean</a></mark> <mark>standard</mark> <mark>mandatory</mark> </td><td>A condition.<br/><b>Default</b>: true </td></tr>
|
||||||
|
<tr><td><b>variable1</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A variable.<br/><b>Disabled</b>: when the variable "condition" has the value "true"</td></tr>
|
||||||
|
<tr><td><b>variable2</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A second variable.<br/><b>Disabled</b>: when the variable "variable1" is disabled" </td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
98
tests/results/test/04_5disabled_calculation_variable12.json
Normal file
98
tests/results/test/04_5disabled_calculation_variable12.json
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
{
|
||||||
|
"condition": {
|
||||||
|
"type": "variable",
|
||||||
|
"default": {
|
||||||
|
"name": "Default",
|
||||||
|
"values": true
|
||||||
|
},
|
||||||
|
"variable_type": "boolean",
|
||||||
|
"path": "condition",
|
||||||
|
"names": [
|
||||||
|
"condition"
|
||||||
|
],
|
||||||
|
"description": "A condition.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "standard",
|
||||||
|
"gen_examples": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"mandatory_without_value": false
|
||||||
|
},
|
||||||
|
"variable1": {
|
||||||
|
"type": "variable",
|
||||||
|
"variable_type": "string",
|
||||||
|
"path": "variable1",
|
||||||
|
"names": [
|
||||||
|
"variable1"
|
||||||
|
],
|
||||||
|
"description": "A variable.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"ori_name": "disabled",
|
||||||
|
"access_control": true,
|
||||||
|
"annotation": {
|
||||||
|
"message": "when the variable \"{0}\" has the value \"true\"",
|
||||||
|
"path": {
|
||||||
|
"path": "condition"
|
||||||
|
},
|
||||||
|
"description": "A condition"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "basic",
|
||||||
|
"gen_examples": [
|
||||||
|
"example"
|
||||||
|
],
|
||||||
|
"mandatory_without_value": true
|
||||||
|
},
|
||||||
|
"variable2": {
|
||||||
|
"type": "variable",
|
||||||
|
"variable_type": "string",
|
||||||
|
"path": "variable2",
|
||||||
|
"names": [
|
||||||
|
"variable2"
|
||||||
|
],
|
||||||
|
"description": "A second variable.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"ori_name": "disabled",
|
||||||
|
"access_control": true,
|
||||||
|
"annotation": {
|
||||||
|
"message": "when the variable \"{0}\" is disabled\"",
|
||||||
|
"path": {
|
||||||
|
"path": "variable1"
|
||||||
|
},
|
||||||
|
"description": "A variable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "basic",
|
||||||
|
"gen_examples": [
|
||||||
|
"example"
|
||||||
|
],
|
||||||
|
"mandatory_without_value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="condition" name="condition">condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="variable1" name="variable1">variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#condition)" has the value "true" |
|
||||||
|
| **<a id="variable2" name="variable2">variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#variable1)" is disabled" |
|
||||||
|
|
||||||
14
tests/results/test/04_5disabled_calculation_variable12.sh
Normal file
14
tests/results/test/04_5disabled_calculation_variable12.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ [1mcondition[0m │ A condition. │
|
||||||
|
│ [1;7m boolean [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: true │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mvariable1[0m │ A variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "condition" has the value "true" │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mvariable2[0m │ A second variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "variable1" is disabled" │
|
||||||
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
== Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
[,yaml]
|
||||||
|
----
|
||||||
|
---
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
----
|
||||||
|
== Example with all variables modifiable
|
||||||
|
|
||||||
|
[,yaml]
|
||||||
|
----
|
||||||
|
---
|
||||||
|
condition: true
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
----
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
<details><summary>Example with mandatory variables not filled in</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details><summary>Example with all variables modifiable</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
condition: true
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<h1>Example with mandatory variables not filled in</h1>
|
||||||
|
|
||||||
|
<pre>variable1: example
|
||||||
|
variable2: example</pre><h1>Example with all variables modifiable</h1>
|
||||||
|
|
||||||
|
<pre>condition: true
|
||||||
|
variable1: example
|
||||||
|
variable2: example</pre>
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
# Example with all variables modifiable
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
condition: true
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
[1;4;96mExample with mandatory variables not filled in[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mvariable2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample [0m
|
||||||
|
|
||||||
|
[1;4;96mExample with all variables modifiable[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mcondition[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mtrue [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mvariable2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample [0m
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
== Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
[,yaml]
|
||||||
|
----
|
||||||
|
---
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
----
|
||||||
|
== Example with all variables modifiable
|
||||||
|
|
||||||
|
[,yaml]
|
||||||
|
----
|
||||||
|
---
|
||||||
|
condition: true # A condition
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
----
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
<details><summary>Example with mandatory variables not filled in</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details><summary>Example with all variables modifiable</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
condition: true # A condition
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<h1>Example with mandatory variables not filled in</h1>
|
||||||
|
|
||||||
|
<pre>variable1: example # A variable
|
||||||
|
variable2: example # A second variable</pre><h1>Example with all variables modifiable</h1>
|
||||||
|
|
||||||
|
<pre>condition: true # A condition
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable</pre>
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
```
|
||||||
|
# Example with all variables modifiable
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
condition: true # A condition
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
[1;4;96mExample with mandatory variables not filled in[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mvariable2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A second variable[0m[48;2;39;40;34m [0m
|
||||||
|
|
||||||
|
[1;4;96mExample with all variables modifiable[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mcondition[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mtrue[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A condition[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mvariable2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A second variable[0m[48;2;39;40;34m [0m
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
== Rougail
|
||||||
|
|
||||||
|
====
|
||||||
|
**🛈 Informations**
|
||||||
|
|
||||||
|
**Path**: rougail +
|
||||||
|
`basic`
|
||||||
|
====
|
||||||
|
[cols="1a,1a"]
|
||||||
|
|====
|
||||||
|
| Variable | Description
|
||||||
|
| **rougail.condition** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. +
|
||||||
|
**Default**: true
|
||||||
|
| **rougail.variable1** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A variable. +
|
||||||
|
**Disabled**: when the variable "rougail.condition" has the value "true"
|
||||||
|
| **rougail.variable2** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. +
|
||||||
|
**Disabled**: when the variable "rougail.variable1" is disabled"
|
||||||
|
|====
|
||||||
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
<details><summary>Rougail</summary>
|
||||||
|
|
||||||
|
> [!note] 🛈 Informations
|
||||||
|
> **Path**: rougail\
|
||||||
|
> `basic`
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="rougail.condition" name="rougail.condition">rougail.condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="rougail.variable1" name="rougail.variable1">rougail.variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" |
|
||||||
|
| **<a id="rougail.variable2" name="rougail.variable2">rougail.variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled" |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
<h1>Rougail</h1>
|
||||||
|
|
||||||
|
<b>Path</b>: rougail
|
||||||
|
|
||||||
|
<mark>basic</mark>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr><th>Variable </th><th>Description </th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td><b>rougail.condition</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>boolean</a></mark> <mark>standard</mark> <mark>mandatory</mark> </td><td>A condition.<br/><b>Default</b>: true </td></tr>
|
||||||
|
<tr><td><b>rougail.variable1</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A variable.<br/><b>Disabled</b>: when the variable "rougail.condition" has the value "true"</td></tr>
|
||||||
|
<tr><td><b>rougail.variable2</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A second variable.<br/><b>Disabled</b>: when the variable "rougail.variable1" is disabled" </td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,112 @@
|
||||||
|
{
|
||||||
|
"rougail": {
|
||||||
|
"type": "namespace",
|
||||||
|
"informations": {
|
||||||
|
"path": "rougail",
|
||||||
|
"names": [
|
||||||
|
"rougail"
|
||||||
|
],
|
||||||
|
"description": "Rougail",
|
||||||
|
"properties": [],
|
||||||
|
"mode": "basic"
|
||||||
|
},
|
||||||
|
"children": {
|
||||||
|
"condition": {
|
||||||
|
"type": "variable",
|
||||||
|
"default": {
|
||||||
|
"name": "Default",
|
||||||
|
"values": true
|
||||||
|
},
|
||||||
|
"variable_type": "boolean",
|
||||||
|
"path": "rougail.condition",
|
||||||
|
"names": [
|
||||||
|
"condition"
|
||||||
|
],
|
||||||
|
"description": "A condition.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "standard",
|
||||||
|
"gen_examples": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"mandatory_without_value": false
|
||||||
|
},
|
||||||
|
"variable1": {
|
||||||
|
"type": "variable",
|
||||||
|
"variable_type": "string",
|
||||||
|
"path": "rougail.variable1",
|
||||||
|
"names": [
|
||||||
|
"variable1"
|
||||||
|
],
|
||||||
|
"description": "A variable.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"ori_name": "disabled",
|
||||||
|
"access_control": true,
|
||||||
|
"annotation": {
|
||||||
|
"message": "when the variable \"{0}\" has the value \"true\"",
|
||||||
|
"path": {
|
||||||
|
"path": "rougail.condition"
|
||||||
|
},
|
||||||
|
"description": "A condition"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "basic",
|
||||||
|
"gen_examples": [
|
||||||
|
"example"
|
||||||
|
],
|
||||||
|
"mandatory_without_value": true
|
||||||
|
},
|
||||||
|
"variable2": {
|
||||||
|
"type": "variable",
|
||||||
|
"variable_type": "string",
|
||||||
|
"path": "rougail.variable2",
|
||||||
|
"names": [
|
||||||
|
"variable2"
|
||||||
|
],
|
||||||
|
"description": "A second variable.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"ori_name": "disabled",
|
||||||
|
"access_control": true,
|
||||||
|
"annotation": {
|
||||||
|
"message": "when the variable \"{0}\" is disabled\"",
|
||||||
|
"path": {
|
||||||
|
"path": "rougail.variable1"
|
||||||
|
},
|
||||||
|
"description": "A variable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "basic",
|
||||||
|
"gen_examples": [
|
||||||
|
"example"
|
||||||
|
],
|
||||||
|
"mandatory_without_value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Rougail
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
>
|
||||||
|
> **Path**: rougail\
|
||||||
|
> `basic`
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="rougail.condition" name="rougail.condition">rougail.condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="rougail.variable1" name="rougail.variable1">rougail.variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" |
|
||||||
|
| **<a id="rougail.variable2" name="rougail.variable2">rougail.variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled" |
|
||||||
|
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
[1;4;96mRougail[0m
|
||||||
|
|
||||||
|
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||||
|
[34m▌ [0m
|
||||||
|
[34m▌ [0m[1mPath[0m: rougail
|
||||||
|
[34m▌ [0m[1;7m basic [0m
|
||||||
|
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ [1mrougail.condition[0m │ A condition. │
|
||||||
|
│ [1;7m boolean [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: true │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mrougail.variable1[0m │ A variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "rougail.condition" has the value │
|
||||||
|
│ │ "true" │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mrougail.variable2[0m │ A second variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "rougail.variable1" is disabled" │
|
||||||
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
== Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
[,yaml]
|
||||||
|
----
|
||||||
|
---
|
||||||
|
rougail:
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
----
|
||||||
|
== Example with all variables modifiable
|
||||||
|
|
||||||
|
[,yaml]
|
||||||
|
----
|
||||||
|
---
|
||||||
|
rougail:
|
||||||
|
condition: true
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
----
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
<details><summary>Example with mandatory variables not filled in</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail:
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details><summary>Example with all variables modifiable</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail:
|
||||||
|
condition: true
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
<h1>Example with mandatory variables not filled in</h1>
|
||||||
|
|
||||||
|
<pre>rougail:
|
||||||
|
variable1: example
|
||||||
|
variable2: example</pre><h1>Example with all variables modifiable</h1>
|
||||||
|
|
||||||
|
<pre>rougail:
|
||||||
|
condition: true
|
||||||
|
variable1: example
|
||||||
|
variable2: example</pre>
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail:
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
# Example with all variables modifiable
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail:
|
||||||
|
condition: true
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
[1;4;96mExample with mandatory variables not filled in[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample [0m
|
||||||
|
|
||||||
|
[1;4;96mExample with all variables modifiable[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mcondition[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mtrue [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample [0m
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
== Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
[,yaml]
|
||||||
|
----
|
||||||
|
---
|
||||||
|
rougail: # Rougail
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
----
|
||||||
|
== Example with all variables modifiable
|
||||||
|
|
||||||
|
[,yaml]
|
||||||
|
----
|
||||||
|
---
|
||||||
|
rougail: # Rougail
|
||||||
|
condition: true # A condition
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
----
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
<details><summary>Example with mandatory variables not filled in</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail: # Rougail
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details><summary>Example with all variables modifiable</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail: # Rougail
|
||||||
|
condition: true # A condition
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
<h1>Example with mandatory variables not filled in</h1>
|
||||||
|
|
||||||
|
<pre>rougail: # Rougail
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable</pre><h1>Example with all variables modifiable</h1>
|
||||||
|
|
||||||
|
<pre>rougail: # Rougail
|
||||||
|
condition: true # A condition
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable</pre>
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail: # Rougail
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
```
|
||||||
|
# Example with all variables modifiable
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail: # Rougail
|
||||||
|
condition: true # A condition
|
||||||
|
variable1: example # A variable
|
||||||
|
variable2: example # A second variable
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
[1;4;96mExample with mandatory variables not filled in[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# Rougail[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A second variable[0m[48;2;39;40;34m [0m
|
||||||
|
|
||||||
|
[1;4;96mExample with all variables modifiable[0m
|
||||||
|
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# Rougail[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mcondition[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mtrue[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A condition[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||||
|
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mexample[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A second variable[0m[48;2;39;40;34m [0m
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
[cols="1a,1a"]
|
||||||
|
|====
|
||||||
|
| Variable | Description
|
||||||
|
| **rougail.condition** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. +
|
||||||
|
**Default**: true
|
||||||
|
| **rougail.variable1** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A variable. +
|
||||||
|
**Disabled**: when the variable "rougail.condition" has the value "true"
|
||||||
|
| **rougail.variable2** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. +
|
||||||
|
**Disabled**: when the variable "rougail.variable1" is disabled"
|
||||||
|
|====
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
== New variables
|
||||||
|
|
||||||
|
[cols="1a,1a"]
|
||||||
|
|====
|
||||||
|
| Variable | Description
|
||||||
|
| **rougail.condition** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. +
|
||||||
|
**Default**: true
|
||||||
|
| **rougail.variable1** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A variable. +
|
||||||
|
**Disabled**: when the variable "rougail.condition" has the value "true"
|
||||||
|
| **rougail.variable2** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. +
|
||||||
|
**Disabled**: when the variable "rougail.variable1" is disabled"
|
||||||
|
|====
|
||||||
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
<details><summary>New variables</summary>
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="rougail.condition" name="rougail.condition">rougail.condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="rougail.variable1" name="rougail.variable1">rougail.variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" |
|
||||||
|
| **<a id="rougail.variable2" name="rougail.variable2">rougail.variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled" |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
<h1>New variables</h1>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr><th>Variable </th><th>Description </th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td><b>rougail.condition</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>boolean</a></mark> <mark>standard</mark> <mark>mandatory</mark> </td><td>A condition.<br/><b>Default</b>: true </td></tr>
|
||||||
|
<tr><td><b>rougail.variable1</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A variable.<br/><b>Disabled</b>: when the variable "rougail.condition" has the value "true"</td></tr>
|
||||||
|
<tr><td><b>rougail.variable2</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A second variable.<br/><b>Disabled</b>: when the variable "rougail.variable1" is disabled" </td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
# New variables
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="rougail.condition" name="rougail.condition">rougail.condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="rougail.variable1" name="rougail.variable1">rougail.variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" |
|
||||||
|
| **<a id="rougail.variable2" name="rougail.variable2">rougail.variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled" |
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
[1;4;96mNew variables[0m
|
||||||
|
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ [1mrougail.condition[0m │ A condition. │
|
||||||
|
│ [1;7m boolean [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: true │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mrougail.variable1[0m │ A variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "rougail.condition" has the value │
|
||||||
|
│ │ "true" │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mrougail.variable2[0m │ A second variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "rougail.variable1" is disabled" │
|
||||||
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="rougail.condition" name="rougail.condition">rougail.condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="rougail.variable1" name="rougail.variable1">rougail.variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" |
|
||||||
|
| **<a id="rougail.variable2" name="rougail.variable2">rougail.variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled" |
|
||||||
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr><th>Variable </th><th>Description </th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td><b>rougail.condition</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>boolean</a></mark> <mark>standard</mark> <mark>mandatory</mark> </td><td>A condition.<br/><b>Default</b>: true </td></tr>
|
||||||
|
<tr><td><b>rougail.variable1</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A variable.<br/><b>Disabled</b>: when the variable "rougail.condition" has the value "true"</td></tr>
|
||||||
|
<tr><td><b>rougail.variable2</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A second variable.<br/><b>Disabled</b>: when the variable "rougail.variable1" is disabled" </td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,112 @@
|
||||||
|
{
|
||||||
|
"rougail": {
|
||||||
|
"type": "namespace",
|
||||||
|
"informations": {
|
||||||
|
"path": "rougail",
|
||||||
|
"names": [
|
||||||
|
"rougail"
|
||||||
|
],
|
||||||
|
"description": "Rougail",
|
||||||
|
"properties": [],
|
||||||
|
"mode": "basic"
|
||||||
|
},
|
||||||
|
"children": {
|
||||||
|
"condition": {
|
||||||
|
"type": "variable",
|
||||||
|
"default": {
|
||||||
|
"name": "Default",
|
||||||
|
"values": true
|
||||||
|
},
|
||||||
|
"variable_type": "boolean",
|
||||||
|
"path": "rougail.condition",
|
||||||
|
"names": [
|
||||||
|
"condition"
|
||||||
|
],
|
||||||
|
"description": "A condition.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "standard",
|
||||||
|
"gen_examples": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"mandatory_without_value": false
|
||||||
|
},
|
||||||
|
"variable1": {
|
||||||
|
"type": "variable",
|
||||||
|
"variable_type": "string",
|
||||||
|
"path": "rougail.variable1",
|
||||||
|
"names": [
|
||||||
|
"variable1"
|
||||||
|
],
|
||||||
|
"description": "A variable.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"ori_name": "disabled",
|
||||||
|
"access_control": true,
|
||||||
|
"annotation": {
|
||||||
|
"message": "when the variable \"{0}\" has the value \"true\"",
|
||||||
|
"path": {
|
||||||
|
"path": "rougail.condition"
|
||||||
|
},
|
||||||
|
"description": "A condition"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "basic",
|
||||||
|
"gen_examples": [
|
||||||
|
"example"
|
||||||
|
],
|
||||||
|
"mandatory_without_value": true
|
||||||
|
},
|
||||||
|
"variable2": {
|
||||||
|
"type": "variable",
|
||||||
|
"variable_type": "string",
|
||||||
|
"path": "rougail.variable2",
|
||||||
|
"names": [
|
||||||
|
"variable2"
|
||||||
|
],
|
||||||
|
"description": "A second variable.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"ori_name": "disabled",
|
||||||
|
"access_control": true,
|
||||||
|
"annotation": {
|
||||||
|
"message": "when the variable \"{0}\" is disabled\"",
|
||||||
|
"path": {
|
||||||
|
"path": "rougail.variable1"
|
||||||
|
},
|
||||||
|
"description": "A variable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "basic",
|
||||||
|
"gen_examples": [
|
||||||
|
"example"
|
||||||
|
],
|
||||||
|
"mandatory_without_value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="rougail.condition" name="rougail.condition">rougail.condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="rougail.variable1" name="rougail.variable1">rougail.variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" |
|
||||||
|
| **<a id="rougail.variable2" name="rougail.variable2">rougail.variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled" |
|
||||||
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ [1mrougail.condition[0m │ A condition. │
|
||||||
|
│ [1;7m boolean [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: true │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mrougail.variable1[0m │ A variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "rougail.condition" has the value │
|
||||||
|
│ │ "true" │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mrougail.variable2[0m │ A second variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "rougail.variable1" is disabled" │
|
||||||
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
[cols="1a,1a"]
|
||||||
|
|====
|
||||||
|
| Variable | Description
|
||||||
|
| **condition** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. +
|
||||||
|
**Default**: true
|
||||||
|
| **variable1** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A variable. +
|
||||||
|
**Disabled**: when the variable "condition" has the value "true"
|
||||||
|
| **variable2** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. +
|
||||||
|
**Disabled**: when the variable "variable1" is disabled"
|
||||||
|
|====
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
== New variables
|
||||||
|
|
||||||
|
[cols="1a,1a"]
|
||||||
|
|====
|
||||||
|
| Variable | Description
|
||||||
|
| **condition** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. +
|
||||||
|
**Default**: true
|
||||||
|
| **variable1** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A variable. +
|
||||||
|
**Disabled**: when the variable "condition" has the value "true"
|
||||||
|
| **variable2** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. +
|
||||||
|
**Disabled**: when the variable "variable1" is disabled"
|
||||||
|
|====
|
||||||
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
<details><summary>New variables</summary>
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="condition" name="condition">condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="variable1" name="variable1">variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#condition)" has the value "true" |
|
||||||
|
| **<a id="variable2" name="variable2">variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#variable1)" is disabled" |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
<h1>New variables</h1>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr><th>Variable </th><th>Description </th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td><b>condition</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>boolean</a></mark> <mark>standard</mark> <mark>mandatory</mark> </td><td>A condition.<br/><b>Default</b>: true </td></tr>
|
||||||
|
<tr><td><b>variable1</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A variable.<br/><b>Disabled</b>: when the variable "condition" has the value "true"</td></tr>
|
||||||
|
<tr><td><b>variable2</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A second variable.<br/><b>Disabled</b>: when the variable "variable1" is disabled" </td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
# New variables
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="condition" name="condition">condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="variable1" name="variable1">variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#condition)" has the value "true" |
|
||||||
|
| **<a id="variable2" name="variable2">variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#variable1)" is disabled" |
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
[1;4;96mNew variables[0m
|
||||||
|
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ [1mcondition[0m │ A condition. │
|
||||||
|
│ [1;7m boolean [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: true │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mvariable1[0m │ A variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "condition" has the value "true" │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mvariable2[0m │ A second variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "variable1" is disabled" │
|
||||||
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="condition" name="condition">condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="variable1" name="variable1">variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#condition)" has the value "true" |
|
||||||
|
| **<a id="variable2" name="variable2">variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#variable1)" is disabled" |
|
||||||
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr><th>Variable </th><th>Description </th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td><b>condition</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>boolean</a></mark> <mark>standard</mark> <mark>mandatory</mark> </td><td>A condition.<br/><b>Default</b>: true </td></tr>
|
||||||
|
<tr><td><b>variable1</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A variable.<br/><b>Disabled</b>: when the variable "condition" has the value "true"</td></tr>
|
||||||
|
<tr><td><b>variable2</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>string</a></mark> <mark>basic</mark> <mark>mandatory</mark> <mark><i>disabled</i></mark></td><td>A second variable.<br/><b>Disabled</b>: when the variable "variable1" is disabled" </td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,98 @@
|
||||||
|
{
|
||||||
|
"condition": {
|
||||||
|
"type": "variable",
|
||||||
|
"default": {
|
||||||
|
"name": "Default",
|
||||||
|
"values": true
|
||||||
|
},
|
||||||
|
"variable_type": "boolean",
|
||||||
|
"path": "condition",
|
||||||
|
"names": [
|
||||||
|
"condition"
|
||||||
|
],
|
||||||
|
"description": "A condition.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "standard",
|
||||||
|
"gen_examples": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"mandatory_without_value": false
|
||||||
|
},
|
||||||
|
"variable1": {
|
||||||
|
"type": "variable",
|
||||||
|
"variable_type": "string",
|
||||||
|
"path": "variable1",
|
||||||
|
"names": [
|
||||||
|
"variable1"
|
||||||
|
],
|
||||||
|
"description": "A variable.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"ori_name": "disabled",
|
||||||
|
"access_control": true,
|
||||||
|
"annotation": {
|
||||||
|
"message": "when the variable \"{0}\" has the value \"true\"",
|
||||||
|
"path": {
|
||||||
|
"path": "condition"
|
||||||
|
},
|
||||||
|
"description": "A condition"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "basic",
|
||||||
|
"gen_examples": [
|
||||||
|
"example"
|
||||||
|
],
|
||||||
|
"mandatory_without_value": true
|
||||||
|
},
|
||||||
|
"variable2": {
|
||||||
|
"type": "variable",
|
||||||
|
"variable_type": "string",
|
||||||
|
"path": "variable2",
|
||||||
|
"names": [
|
||||||
|
"variable2"
|
||||||
|
],
|
||||||
|
"description": "A second variable.",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory",
|
||||||
|
"ori_name": "mandatory",
|
||||||
|
"access_control": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"ori_name": "disabled",
|
||||||
|
"access_control": true,
|
||||||
|
"annotation": {
|
||||||
|
"message": "when the variable \"{0}\" is disabled\"",
|
||||||
|
"path": {
|
||||||
|
"path": "variable1"
|
||||||
|
},
|
||||||
|
"description": "A variable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mode": "basic",
|
||||||
|
"gen_examples": [
|
||||||
|
"example"
|
||||||
|
],
|
||||||
|
"mandatory_without_value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
||||||
|
| **<a id="condition" name="condition">condition</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: true |
|
||||||
|
| **<a id="variable1" name="variable1">variable1</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A variable.<br/>**Disabled**: when the variable "[A condition](#condition)" has the value "true" |
|
||||||
|
| **<a id="variable2" name="variable2">variable2</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.<br/>**Disabled**: when the variable "[A variable](#variable1)" is disabled" |
|
||||||
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ [1mcondition[0m │ A condition. │
|
||||||
|
│ [1;7m boolean [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: true │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mvariable1[0m │ A variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "condition" has the value "true" │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mvariable2[0m │ A second variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mDisabled[0m: when the variable │
|
||||||
|
│ [1;3;7mdisabled[0m[1;7m [0m │ "variable1" is disabled" │
|
||||||
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
Loading…
Reference in a new issue