From aeff3e8b7c2b56213977c36aaafa19163bcc8f21 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 25 Apr 2025 14:17:07 +0200 Subject: [PATCH] fix: better dynamic support --- src/rougail/output_doc/annotator.py | 35 +-- src/rougail/output_doc/doc.py | 41 ++-- ...5disabled_calculation_variable_multi2.adoc | 16 -- ...5disabled_calculation_variable_multi2.json | 75 ------- ...5disabled_calculation_variable_multi3.adoc | 20 -- ...5disabled_calculation_variable_multi3.json | 79 ------- .../test/40_0leadership_leader_follower.adoc | 26 +++ .../40_0leadership_leader_follower.json} | 53 +++-- .../40_0leadership_leader_follower.md} | 14 +- ...3.sh => 40_0leadership_leader_follower.sh} | 23 +- ...variable_leader_follower_multi_inside.adoc | 26 +++ ...ariable_leader_follower_multi_inside.json} | 49 ++--- ..._variable_leader_follower_multi_inside.md} | 14 +- ..._variable_leader_follower_multi_inside.sh} | 24 ++- ...ulation-outside-follower-no-mandatory.adoc | 36 ++++ ...ulation-outside-follower-no-mandatory.json | 106 +++++++++ ...lculation-outside-follower-no-mandatory.md | 15 ++ ...lculation-outside-follower-no-mandatory.sh | 29 +++ .../40_9leadership-calculation-variable.adoc | 43 ++++ .../40_9leadership-calculation-variable.json | 152 +++++++++++++ .../40_9leadership-calculation-variable.md | 16 ++ .../40_9leadership-calculation-variable.sh | 32 +++ ...-calculation-variable_leader_follower.adoc | 48 +++++ ...-calculation-variable_leader_follower.json | 174 +++++++++++++++ ...ip-calculation-variable_leader_follower.md | 22 ++ ...ip-calculation-variable_leader_follower.sh | 43 ++++ ...ion-variable_leader_follower_not_same.adoc | 51 +++++ ...ion-variable_leader_follower_not_same.json | 181 ++++++++++++++++ ...ation-variable_leader_follower_not_same.md | 22 ++ ...ation-variable_leader_follower_not_same.sh | 45 ++++ .../test/60_0family_dynamic_upper_char.adoc | 33 +++ .../test/60_0family_dynamic_upper_char.json | 94 ++++++++ .../test/60_0family_dynamic_upper_char.md | 16 ++ .../test/60_0family_dynamic_upper_char.sh | 29 +++ ...0_5family_dynamic_calc_variable_empty.adoc | 2 +- ...0_5family_dynamic_calc_variable_empty.json | 2 +- .../60_5family_dynamic_calc_variable_empty.md | 2 +- .../60_5family_dynamic_calc_variable_empty.sh | 4 +- ...dynamic_variable_outside_suffix_empty.adoc | 2 +- ...dynamic_variable_outside_suffix_empty.json | 2 +- ...y_dynamic_variable_outside_suffix_empty.md | 2 +- ...y_dynamic_variable_outside_suffix_empty.sh | 4 +- ...4_5disabled_calculation_variable_multi3.md | 17 -- .../40_0leadership_leader_follower.md | 10 + ...n_variable_leader_follower_multi_inside.md | 12 ++ ...lculation-outside-follower-no-mandatory.md | 13 ++ .../40_9leadership-calculation-variable.md | 15 ++ ...ip-calculation-variable_leader_follower.md | 15 ++ ...ation-variable_leader_follower_not_same.md | 19 ++ ...i2.md => 60_0family_dynamic_upper_char.md} | 19 +- ...5disabled_calculation_variable_multi2.adoc | 18 -- ...5disabled_calculation_variable_multi3.adoc | 22 -- .../40_0leadership_leader_follower.adoc | 28 +++ .../40_0leadership_leader_follower.json | 110 ++++++++++ ...2.md => 40_0leadership_leader_follower.md} | 14 +- ...3.sh => 40_0leadership_leader_follower.sh} | 24 ++- ...variable_leader_follower_multi_inside.adoc | 28 +++ ...variable_leader_follower_multi_inside.json | 116 ++++++++++ ..._variable_leader_follower_multi_inside.md} | 16 +- ..._variable_leader_follower_multi_inside.sh} | 25 ++- ...ulation-outside-follower-no-mandatory.adoc | 38 ++++ ...ulation-outside-follower-no-mandatory.json | 126 +++++++++++ ...lculation-outside-follower-no-mandatory.md | 17 ++ ...lculation-outside-follower-no-mandatory.sh | 34 +++ .../40_9leadership-calculation-variable.adoc | 45 ++++ .../40_9leadership-calculation-variable.json | 172 +++++++++++++++ .../40_9leadership-calculation-variable.md | 18 ++ .../40_9leadership-calculation-variable.sh | 37 ++++ ...-calculation-variable_leader_follower.adoc | 50 +++++ ...-calculation-variable_leader_follower.json | 194 +++++++++++++++++ ...ip-calculation-variable_leader_follower.md | 24 +++ ...ip-calculation-variable_leader_follower.sh | 48 +++++ ...ion-variable_leader_follower_not_same.adoc | 53 +++++ ...ion-variable_leader_follower_not_same.json | 201 ++++++++++++++++++ ...ation-variable_leader_follower_not_same.md | 24 +++ ...ation-variable_leader_follower_not_same.sh | 50 +++++ .../60_0family_dynamic_upper_char.adoc | 35 +++ .../60_0family_dynamic_upper_char.json | 114 ++++++++++ .../60_0family_dynamic_upper_char.md | 18 ++ .../60_0family_dynamic_upper_char.sh | 34 +++ ...5family_dynamic_calc_suffix_disabled2.adoc | 5 +- ...5family_dynamic_calc_suffix_disabled2.json | 5 +- ...0_5family_dynamic_calc_suffix_disabled2.md | 2 +- ...0_5family_dynamic_calc_suffix_disabled2.sh | 7 +- .../60_5family_dynamic_calc_suffix_empty.adoc | 2 +- .../60_5family_dynamic_calc_suffix_empty.json | 2 +- .../60_5family_dynamic_calc_suffix_empty.md | 2 +- .../60_5family_dynamic_calc_suffix_empty.sh | 4 +- ...0_5family_dynamic_calc_suffix_empty_2.adoc | 2 +- ...0_5family_dynamic_calc_suffix_empty_2.json | 4 +- .../60_5family_dynamic_calc_suffix_empty_2.md | 2 +- .../60_5family_dynamic_calc_suffix_empty_2.sh | 4 +- ...0_5family_dynamic_calc_suffix_empty_3.adoc | 2 +- ...0_5family_dynamic_calc_suffix_empty_3.json | 2 +- .../60_5family_dynamic_calc_suffix_empty_3.md | 2 +- .../60_5family_dynamic_calc_suffix_empty_3.sh | 4 +- ...0_5family_dynamic_calc_variable_empty.adoc | 2 +- ...0_5family_dynamic_calc_variable_empty.json | 2 +- .../60_5family_dynamic_calc_variable_empty.md | 2 +- .../60_5family_dynamic_calc_variable_empty.sh | 4 +- ..._5family_dynamic_unknown_suffix_empty.adoc | 14 +- ..._5family_dynamic_unknown_suffix_empty.json | 14 +- ...60_5family_dynamic_unknown_suffix_empty.md | 4 +- ...60_5family_dynamic_unknown_suffix_empty.sh | 26 ++- .../60_5family_dynamic_variable_outside.adoc | 5 +- .../60_5family_dynamic_variable_outside.json | 5 +- .../60_5family_dynamic_variable_outside.md | 2 +- .../60_5family_dynamic_variable_outside.sh | 7 +- .../60_5family_dynamic_variable_outside2.adoc | 5 +- .../60_5family_dynamic_variable_outside2.json | 5 +- .../60_5family_dynamic_variable_outside2.md | 2 +- .../60_5family_dynamic_variable_outside2.sh | 7 +- ...amily_dynamic_variable_outside2_empty.adoc | 5 +- ...amily_dynamic_variable_outside2_empty.json | 5 +- ...5family_dynamic_variable_outside2_empty.md | 2 +- ...5family_dynamic_variable_outside2_empty.sh | 7 +- ..._5family_dynamic_variable_outside_1_0.adoc | 5 +- ..._5family_dynamic_variable_outside_1_0.json | 5 +- ...60_5family_dynamic_variable_outside_1_0.md | 2 +- ...60_5family_dynamic_variable_outside_1_0.sh | 7 +- ...family_dynamic_variable_outside_empty.adoc | 5 +- ...family_dynamic_variable_outside_empty.json | 5 +- ..._5family_dynamic_variable_outside_empty.md | 2 +- ..._5family_dynamic_variable_outside_empty.sh | 7 +- ...mic_variable_outside_sub_suffix_empty.adoc | 5 +- ...mic_variable_outside_sub_suffix_empty.json | 5 +- ...namic_variable_outside_sub_suffix_empty.md | 2 +- ...namic_variable_outside_sub_suffix_empty.sh | 7 +- ...dynamic_variable_outside_suffix_empty.adoc | 2 +- ...dynamic_variable_outside_suffix_empty.json | 2 +- ...y_dynamic_variable_outside_suffix_empty.md | 2 +- ...y_dynamic_variable_outside_suffix_empty.sh | 4 +- .../60_6family_dynamic_inside.adoc | 10 +- .../60_6family_dynamic_inside.json | 10 +- .../60_6family_dynamic_inside.md | 4 +- .../60_6family_dynamic_inside.sh | 14 +- .../60_6family_dynamic_inside_empty.adoc | 10 +- .../60_6family_dynamic_inside_empty.json | 10 +- .../60_6family_dynamic_inside_empty.md | 4 +- .../60_6family_dynamic_inside_empty.sh | 14 +- .../60_6family_dynamic_sub_dynamic.adoc | 5 +- .../60_6family_dynamic_sub_dynamic.json | 5 +- .../60_6family_dynamic_sub_dynamic.md | 2 +- .../60_6family_dynamic_sub_dynamic.sh | 4 +- .../60_6family_dynamic_sub_dynamic_1_0.adoc | 5 +- .../60_6family_dynamic_sub_dynamic_1_0.json | 5 +- .../60_6family_dynamic_sub_dynamic_1_0.md | 2 +- .../60_6family_dynamic_sub_dynamic_1_0.sh | 4 +- .../60_6family_dynamic_sub_dynamic_empty.adoc | 5 +- .../60_6family_dynamic_sub_dynamic_empty.json | 5 +- .../60_6family_dynamic_sub_dynamic_empty.md | 2 +- .../60_6family_dynamic_sub_dynamic_empty.sh | 4 +- ...60_6family_dynamic_sub_dynamic_empty2.adoc | 5 +- ...60_6family_dynamic_sub_dynamic_empty2.json | 5 +- .../60_6family_dynamic_sub_dynamic_empty2.md | 2 +- .../60_6family_dynamic_sub_dynamic_empty2.sh | 4 +- .../60_6family_dynamic_suffix_auto_multi.adoc | 59 +++++ .../60_6family_dynamic_suffix_auto_multi.json | 180 ++++++++++++++++ .../60_6family_dynamic_suffix_auto_multi.md | 30 +++ .../60_6family_dynamic_suffix_auto_multi.sh | 61 ++++++ ...60_6family_dynamic_suffix_auto_multi2.adoc | 59 +++++ ...60_6family_dynamic_suffix_auto_multi2.json | 180 ++++++++++++++++ .../60_6family_dynamic_suffix_auto_multi2.md | 30 +++ .../60_6family_dynamic_suffix_auto_multi2.sh | 61 ++++++ ...4_5disabled_calculation_variable_multi2.md | 20 -- .../40_0leadership_leader_follower.md | 11 + ...n_variable_leader_follower_multi_inside.md | 13 ++ ...lculation-outside-follower-no-mandatory.md | 14 ++ .../40_9leadership-calculation-variable.md | 16 ++ ...ip-calculation-variable_leader_follower.md | 16 ++ ...ation-variable_leader_follower_not_same.md | 20 ++ ...i3.md => 60_0family_dynamic_upper_char.md} | 18 +- .../60_6family_dynamic_suffix_auto_multi.md | 38 ++++ .../60_6family_dynamic_suffix_auto_multi2.md | 38 ++++ tests/test_load.py | 2 +- 175 files changed, 4264 insertions(+), 540 deletions(-) delete mode 100644 tests/results/test/04_5disabled_calculation_variable_multi2.adoc delete mode 100644 tests/results/test/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test/04_5disabled_calculation_variable_multi3.adoc delete mode 100644 tests/results/test/04_5disabled_calculation_variable_multi3.json create mode 100644 tests/results/test/40_0leadership_leader_follower.adoc rename tests/results/{test_namespace/04_5disabled_calculation_variable_multi2.json => test/40_0leadership_leader_follower.json} (60%) rename tests/results/{test_namespace/04_5disabled_calculation_variable_multi3.md => test/40_0leadership_leader_follower.md} (80%) rename tests/results/test/{04_5disabled_calculation_variable_multi3.sh => 40_0leadership_leader_follower.sh} (69%) create mode 100644 tests/results/test/40_9calculation_variable_leader_follower_multi_inside.adoc rename tests/results/{test_namespace/04_5disabled_calculation_variable_multi3.json => test/40_9calculation_variable_leader_follower_multi_inside.json} (65%) rename tests/results/test/{04_5disabled_calculation_variable_multi3.md => 40_9calculation_variable_leader_follower_multi_inside.md} (78%) rename tests/results/test/{04_5disabled_calculation_variable_multi2.sh => 40_9calculation_variable_leader_follower_multi_inside.sh} (57%) create mode 100644 tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.adoc create mode 100644 tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.json create mode 100644 tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.md create mode 100644 tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.sh create mode 100644 tests/results/test/40_9leadership-calculation-variable.adoc create mode 100644 tests/results/test/40_9leadership-calculation-variable.json create mode 100644 tests/results/test/40_9leadership-calculation-variable.md create mode 100644 tests/results/test/40_9leadership-calculation-variable.sh create mode 100644 tests/results/test/40_9leadership-calculation-variable_leader_follower.adoc create mode 100644 tests/results/test/40_9leadership-calculation-variable_leader_follower.json create mode 100644 tests/results/test/40_9leadership-calculation-variable_leader_follower.md create mode 100644 tests/results/test/40_9leadership-calculation-variable_leader_follower.sh create mode 100644 tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.adoc create mode 100644 tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.json create mode 100644 tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.md create mode 100644 tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.sh create mode 100644 tests/results/test/60_0family_dynamic_upper_char.adoc create mode 100644 tests/results/test/60_0family_dynamic_upper_char.json create mode 100644 tests/results/test/60_0family_dynamic_upper_char.md create mode 100644 tests/results/test/60_0family_dynamic_upper_char.sh delete mode 100644 tests/results/test_examples/04_5disabled_calculation_variable_multi3.md create mode 100644 tests/results/test_examples/40_0leadership_leader_follower.md create mode 100644 tests/results/test_examples/40_9calculation_variable_leader_follower_multi_inside.md create mode 100644 tests/results/test_examples/40_9leadership-calculation-outside-follower-no-mandatory.md create mode 100644 tests/results/test_examples/40_9leadership-calculation-variable.md create mode 100644 tests/results/test_examples/40_9leadership-calculation-variable_leader_follower.md create mode 100644 tests/results/test_examples/40_9leadership-calculation-variable_leader_follower_not_same.md rename tests/results/test_examples/{04_5disabled_calculation_variable_multi2.md => 60_0family_dynamic_upper_char.md} (50%) delete mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable_multi2.adoc delete mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable_multi3.adoc create mode 100644 tests/results/test_namespace/40_0leadership_leader_follower.adoc create mode 100644 tests/results/test_namespace/40_0leadership_leader_follower.json rename tests/results/test_namespace/{04_5disabled_calculation_variable_multi2.md => 40_0leadership_leader_follower.md} (78%) rename tests/results/test_namespace/{04_5disabled_calculation_variable_multi3.sh => 40_0leadership_leader_follower.sh} (69%) create mode 100644 tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.adoc create mode 100644 tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.json rename tests/results/{test/04_5disabled_calculation_variable_multi2.md => test_namespace/40_9calculation_variable_leader_follower_multi_inside.md} (78%) rename tests/results/test_namespace/{04_5disabled_calculation_variable_multi2.sh => 40_9calculation_variable_leader_follower_multi_inside.sh} (60%) create mode 100644 tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.adoc create mode 100644 tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.json create mode 100644 tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.md create mode 100644 tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.sh create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable.adoc create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable.json create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable.md create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable.sh create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.adoc create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.json create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.md create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.sh create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.adoc create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.json create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.md create mode 100644 tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.sh create mode 100644 tests/results/test_namespace/60_0family_dynamic_upper_char.adoc create mode 100644 tests/results/test_namespace/60_0family_dynamic_upper_char.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_upper_char.md create mode 100644 tests/results/test_namespace/60_0family_dynamic_upper_char.sh create mode 100644 tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.adoc create mode 100644 tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.md create mode 100644 tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.sh create mode 100644 tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.adoc create mode 100644 tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.json create mode 100644 tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.md create mode 100644 tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.sh delete mode 100644 tests/results/test_namespace_examples/04_5disabled_calculation_variable_multi2.md create mode 100644 tests/results/test_namespace_examples/40_0leadership_leader_follower.md create mode 100644 tests/results/test_namespace_examples/40_9calculation_variable_leader_follower_multi_inside.md create mode 100644 tests/results/test_namespace_examples/40_9leadership-calculation-outside-follower-no-mandatory.md create mode 100644 tests/results/test_namespace_examples/40_9leadership-calculation-variable.md create mode 100644 tests/results/test_namespace_examples/40_9leadership-calculation-variable_leader_follower.md create mode 100644 tests/results/test_namespace_examples/40_9leadership-calculation-variable_leader_follower_not_same.md rename tests/results/test_namespace_examples/{04_5disabled_calculation_variable_multi3.md => 60_0family_dynamic_upper_char.md} (50%) create mode 100644 tests/results/test_namespace_examples/60_6family_dynamic_suffix_auto_multi.md create mode 100644 tests/results/test_namespace_examples/60_6family_dynamic_suffix_auto_multi2.md diff --git a/src/rougail/output_doc/annotator.py b/src/rougail/output_doc/annotator.py index 0b5321a43..2a35dca49 100644 --- a/src/rougail/output_doc/annotator.py +++ b/src/rougail/output_doc/annotator.py @@ -134,10 +134,13 @@ class Annotator(Walk): variable.choices, variable.version, ) + default = variable.default + if default is None and variable.path in self.objectspace.default_multi: + default = self.objectspace.default_multi[variable.path] self.calculation_to_information( variable.path, "default", - variable.default, + default, variable.version, ) self.calculation_to_information( @@ -146,7 +149,7 @@ class Annotator(Walk): variable.validators, variable.version, ) - if variable.path in self.objectspace.leaders and not variable.default: + if variable.path in self.objectspace.leaders and not default: self.add_examples_values(variable) self.objectspace.informations.add( variable.path, "dictionaries", variable.xmlfiles @@ -231,14 +234,16 @@ class Annotator(Walk): "value": self._calculation_to_information_jinja(values), } if isinstance(values, (VariableCalculation, VariablePropertyCalculation)): + variable_path = self._get_path_from_variable(values, version, path) value = self._calculation_to_information_variable( - values, prop, version, path + variable_path, values, prop, version, path ) if value is None: return return { "type": "variable", "value": value, + "ori_path": variable_path, } if isinstance(values, InformationCalculation): return { @@ -272,22 +277,20 @@ class Annotator(Walk): return True def _calculation_to_information_variable( - self, values, prop: str, version: str, path: str + self, variable_path: str, values, prop: str, version: str, path: str ) -> str: # is optional - if isinstance(values, VariableCalculation) and values.optional: - variable = self.objectspace.paths.get_with_dynamic( - values.variable, - path, - values.version, - values.namespace, - values.xmlfiles, - )[0] - if not variable: - return None + variable = self.objectspace.paths.get_with_dynamic( + variable_path, + path, + values.version, + values.namespace, + values.xmlfiles, + )[0] + if isinstance(values, VariableCalculation) and values.optional and not variable: + return None + if variable: variable_path = variable.path - else: - variable_path = self._get_path_from_variable(values, version, path) if prop in PROPERTY_ATTRIBUTE: # get comparative value if values.when_not is not undefined: diff --git a/src/rougail/output_doc/doc.py b/src/rougail/output_doc/doc.py index 1d2f9c3c1..26ba91b76 100644 --- a/src/rougail/output_doc/doc.py +++ b/src/rougail/output_doc/doc.py @@ -19,6 +19,7 @@ along with this program. If not, see . from warnings import warn from typing import Optional from itertools import chain +from re import compile from tiramisu import Calculation, undefined, groups from tiramisu.error import ConfigError, display_list @@ -578,23 +579,39 @@ class RougailOutputDoc(Examples): return None true_msg = _('the value of the variable "{0}"') hidden_msg = _("the value of an undocumented variable") - if "{{ identifier }}" in calculation["value"]: - informations = self.dynamic_paths[calculation["value"]] + # if "{{ identifier }}" in calculation["value"] and calculation["value"] in self.dynamic_paths: + if "{{ identifier }}" in calculation["ori_path"]: + if calculation["value"] == calculation['ori_path']: + regexp = None + else: + regexp = compile("^" + calculation["ori_path"].replace("{{ identifier }}", "(.*)") + "$") + informations = [self.dynamic_paths[calculation["value"]]] values = [] all_is_undocumented = None - for idx, path in enumerate(informations["paths"]): - if self._is_inaccessible_user_data(self.conf.option(path)): - msg = true_msg.format(get_display_path(informations, idx)) - all_is_undocumented = False - else: - if all_is_undocumented is None: - all_is_undocumented = True - msg = hidden_msg - values.append(msg) + for information in informations: + for idx, path in enumerate(information["paths"]): + if regexp and not regexp.search(path): + continue + if self._is_inaccessible_user_data(self.conf.option(path)): + if all_is_undocumented is None: + all_is_undocumented = True + msg = hidden_msg + else: + if regexp: + display_path = calculation['ori_path'] + for identifier in regexp.findall(path): + display_path = display_path.replace( + "{{ identifier }}", self.formater.italic(identifier), 1 + ) + else: + display_path = get_display_path(information, idx) + msg = true_msg.format(display_path) + all_is_undocumented = False + values.append(msg) if all_is_undocumented and len(values) > 1: values = _("the values of undocumented variables") else: - values = true_msg.format(calculation["value"]) + values = true_msg.format(calculation["ori_path"]) elif calculation["type"] == "identifier": if prop in PROPERTY_ATTRIBUTE: values = calculation["value"] diff --git a/tests/results/test/04_5disabled_calculation_variable_multi2.adoc b/tests/results/test/04_5disabled_calculation_variable_multi2.adoc deleted file mode 100644 index 4a1b7e168..000000000 --- a/tests/results/test/04_5disabled_calculation_variable_multi2.adoc +++ /dev/null @@ -1,16 +0,0 @@ -[cols="1a,1a"] -|==== -| Variable | Description -| - -**condition** + -`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `unique` `multiple` | -A condition. -| - -**variable** + -`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` `unique` `multiple` | -A variable. + -**Disabled**: when the variable "condition" has the value "true". -|==== - diff --git a/tests/results/test/04_5disabled_calculation_variable_multi2.json b/tests/results/test/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index 09bcbffe1..000000000 --- a/tests/results/test/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "condition": { - "type": "variable", - "properties": [ - { - "type": "type", - "name": "string" - }, - { - "type": "mode", - "name": "basic" - }, - { - "type": "property", - "name": "mandatory" - }, - { - "type": "property", - "name": "unique" - }, - { - "type": "multiple", - "name": "multiple" - } - ], - "paths": [ - "condition" - ], - "names": [ - "condition" - ], - "descriptions": [ - "A condition." - ] - }, - "variable": { - "type": "variable", - "properties": [ - { - "type": "type", - "name": "string" - }, - { - "type": "mode", - "name": "basic" - }, - { - "type": "property", - "name": "mandatory" - }, - { - "type": "property", - "name": "disabled", - "annotation": "when the variable \"condition\" has the value \"true\"." - }, - { - "type": "property", - "name": "unique" - }, - { - "type": "multiple", - "name": "multiple" - } - ], - "paths": [ - "variable" - ], - "names": [ - "variable" - ], - "descriptions": [ - "A variable." - ] - } -} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable_multi3.adoc b/tests/results/test/04_5disabled_calculation_variable_multi3.adoc deleted file mode 100644 index 42e79e782..000000000 --- a/tests/results/test/04_5disabled_calculation_variable_multi3.adoc +++ /dev/null @@ -1,20 +0,0 @@ -[cols="1a,1a"] -|==== -| Variable | Description -| - -**condition** + -`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | -A condition. + -**Default**: - -* val1 -* val2 -| - -**variable** + -`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` `unique` `multiple` | -A variable. + -**Disabled**: when the variable "condition" has the value "true". -|==== - diff --git a/tests/results/test/04_5disabled_calculation_variable_multi3.json b/tests/results/test/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index dba8f2765..000000000 --- a/tests/results/test/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "condition": { - "type": "variable", - "default": [ - "val1", - "val2" - ], - "properties": [ - { - "type": "type", - "name": "string" - }, - { - "type": "mode", - "name": "standard" - }, - { - "type": "property", - "name": "mandatory" - }, - { - "type": "property", - "name": "unique" - }, - { - "type": "multiple", - "name": "multiple" - } - ], - "paths": [ - "condition" - ], - "names": [ - "condition" - ], - "descriptions": [ - "A condition." - ] - }, - "variable": { - "type": "variable", - "properties": [ - { - "type": "type", - "name": "string" - }, - { - "type": "mode", - "name": "basic" - }, - { - "type": "property", - "name": "mandatory" - }, - { - "type": "property", - "name": "disabled", - "annotation": "when the variable \"condition\" has the value \"true\"." - }, - { - "type": "property", - "name": "unique" - }, - { - "type": "multiple", - "name": "multiple" - } - ], - "paths": [ - "variable" - ], - "names": [ - "variable" - ], - "descriptions": [ - "A variable." - ] - } -} \ No newline at end of file diff --git a/tests/results/test/40_0leadership_leader_follower.adoc b/tests/results/test/40_0leadership_leader_follower.adoc new file mode 100644 index 000000000..cdff53765 --- /dev/null +++ b/tests/results/test/40_0leadership_leader_follower.adoc @@ -0,0 +1,26 @@ +== a leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**leadership.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**leadership.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | +A follower. + +**Default**: the value of the variable "leadership.leader". +|==== + diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.json b/tests/results/test/40_0leadership_leader_follower.json similarity index 60% rename from tests/results/test_namespace/04_5disabled_calculation_variable_multi2.json rename to tests/results/test/40_0leadership_leader_follower.json index d6302e729..79a0ebb71 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.json +++ b/tests/results/test/40_0leadership_leader_follower.json @@ -1,24 +1,31 @@ { - "rougail": { - "type": "namespace", + "leadership": { + "type": "leadership", "informations": { "paths": [ - "rougail" + "leadership" ], "names": [ - "rougail" + "leadership" ], - "description": "Rougail", + "description": "a leadership", "properties": [ { "type": "mode", - "name": "basic" + "name": "standard" } + ], + "help": [ + "This family contains lists of variable blocks." ] }, "children": { - "rougail.condition": { + "leadership.leader": { "type": "variable", + "default": [ + "value1", + "value2" + ], "properties": [ { "type": "type", @@ -26,7 +33,7 @@ }, { "type": "mode", - "name": "basic" + "name": "standard" }, { "type": "property", @@ -42,17 +49,18 @@ } ], "paths": [ - "rougail.condition" + "leadership.leader" ], "names": [ - "condition" + "leader" ], "descriptions": [ - "A condition." + "A leader." ] }, - "rougail.variable": { + "leadership.follower": { "type": "variable", + "default": "the value of the variable \"leadership.leader\".", "properties": [ { "type": "type", @@ -60,34 +68,21 @@ }, { "type": "mode", - "name": "basic" + "name": "standard" }, { "type": "property", "name": "mandatory" - }, - { - "type": "property", - "name": "disabled", - "annotation": "when the variable \"rougail.condition\" has the value \"true\"." - }, - { - "type": "property", - "name": "unique" - }, - { - "type": "multiple", - "name": "multiple" } ], "paths": [ - "rougail.variable" + "leadership.follower" ], "names": [ - "variable" + "follower" ], "descriptions": [ - "A variable." + "A follower." ] } } diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.md b/tests/results/test/40_0leadership_leader_follower.md similarity index 80% rename from tests/results/test_namespace/04_5disabled_calculation_variable_multi3.md rename to tests/results/test/40_0leadership_leader_follower.md index 965511492..277e70482 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.md +++ b/tests/results/test/40_0leadership_leader_follower.md @@ -1,7 +1,11 @@ -# Variables for "Rougail" +# a leadership -| Variable                                                                                                                                 | Description                                                                                                                              | -|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.condition**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A condition.
**Default**:
- val1
- val2 | -| **rougail.variable**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* `unique` `multiple` | A variable.
**Disabled**: when the variable "rougail.condition" has the value "true". | +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **leadership.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **leadership.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.
**Default**: the value of the variable "leadership.leader". | diff --git a/tests/results/test/04_5disabled_calculation_variable_multi3.sh b/tests/results/test/40_0leadership_leader_follower.sh similarity index 69% rename from tests/results/test/04_5disabled_calculation_variable_multi3.sh rename to tests/results/test/40_0leadership_leader_follower.sh index ffa76a098..efff96a94 100644 --- a/tests/results/test/04_5disabled_calculation_variable_multi3.sh +++ b/tests/results/test/40_0leadership_leader_follower.sh @@ -1,12 +1,23 @@ + + +a leadership + + + standard  + + +This family contains lists of variable blocks. + + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ condition │ A condition. │ +│ leadership.leader │ A leader. │ │  string   standard   mandatory    │ Default: │ -│ unique   multiple  │ - val1 │ -│ │ - val2 │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ ├───────────────────────────────────────┼──────────────────────────────────────┤ -│ variable │ A variable. │ -│  string   basic   mandatory    │ Disabled: when the variable │ -│ disabled   unique   multiple  │ "condition" has the value "true". │ +│ leadership.follower │ A follower. │ +│  string   standard   mandatory  │ Default: the value of the variable │ +│ │ "leadership.leader". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.adoc b/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.adoc new file mode 100644 index 000000000..169e54204 --- /dev/null +++ b/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.adoc @@ -0,0 +1,26 @@ +== a leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**leadership.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**leadership.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `multiple` | +A follower. + +**Default**: the value of the variable "leadership.leader". +|==== + diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.json b/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.json similarity index 65% rename from tests/results/test_namespace/04_5disabled_calculation_variable_multi3.json rename to tests/results/test/40_9calculation_variable_leader_follower_multi_inside.json index 9ee60a4cb..9dc5a2c41 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.json +++ b/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.json @@ -1,27 +1,30 @@ { - "rougail": { - "type": "namespace", + "leadership": { + "type": "leadership", "informations": { "paths": [ - "rougail" + "leadership" ], "names": [ - "rougail" + "leadership" ], - "description": "Rougail", + "description": "a leadership", "properties": [ { "type": "mode", - "name": "basic" + "name": "standard" } + ], + "help": [ + "This family contains lists of variable blocks." ] }, "children": { - "rougail.condition": { + "leadership.leader": { "type": "variable", "default": [ - "val1", - "val2" + "value1", + "value2" ], "properties": [ { @@ -46,17 +49,20 @@ } ], "paths": [ - "rougail.condition" + "leadership.leader" ], "names": [ - "condition" + "leader" ], "descriptions": [ - "A condition." + "A leader." ] }, - "rougail.variable": { + "leadership.follower": { "type": "variable", + "default": [ + "the value of the variable \"leadership.leader\"." + ], "properties": [ { "type": "type", @@ -64,34 +70,25 @@ }, { "type": "mode", - "name": "basic" + "name": "standard" }, { "type": "property", "name": "mandatory" }, - { - "type": "property", - "name": "disabled", - "annotation": "when the variable \"rougail.condition\" has the value \"true\"." - }, - { - "type": "property", - "name": "unique" - }, { "type": "multiple", "name": "multiple" } ], "paths": [ - "rougail.variable" + "leadership.follower" ], "names": [ - "variable" + "follower" ], "descriptions": [ - "A variable." + "A follower." ] } } diff --git a/tests/results/test/04_5disabled_calculation_variable_multi3.md b/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.md similarity index 78% rename from tests/results/test/04_5disabled_calculation_variable_multi3.md rename to tests/results/test/40_9calculation_variable_leader_follower_multi_inside.md index f662f2236..fe59c99c7 100644 --- a/tests/results/test/04_5disabled_calculation_variable_multi3.md +++ b/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.md @@ -1,5 +1,11 @@ -| Variable                                                                                                                                 | Description                                                                                                                              | -|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **condition**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A condition.
**Default**:
- val1
- val2 | -| **variable**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* `unique` `multiple` | A variable.
**Disabled**: when the variable "condition" has the value "true". | +# a leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **leadership.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **leadership.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `multiple` | A follower.
**Default**: the value of the variable "leadership.leader". | diff --git a/tests/results/test/04_5disabled_calculation_variable_multi2.sh b/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.sh similarity index 57% rename from tests/results/test/04_5disabled_calculation_variable_multi2.sh rename to tests/results/test/40_9calculation_variable_leader_follower_multi_inside.sh index f43dd9281..f232dc237 100644 --- a/tests/results/test/04_5disabled_calculation_variable_multi2.sh +++ b/tests/results/test/40_9calculation_variable_leader_follower_multi_inside.sh @@ -1,11 +1,23 @@ + + +a leadership + + + standard  + + +This family contains lists of variable blocks. + + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ condition │ A condition. │ -│  string   basic   mandatory   unique  │ │ -│ multiple  │ │ +│ leadership.leader │ A leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ ├───────────────────────────────────────┼──────────────────────────────────────┤ -│ variable │ A variable. │ -│  string   basic   mandatory    │ Disabled: when the variable │ -│ disabled   unique   multiple  │ "condition" has the value "true". │ +│ leadership.follower │ A follower. │ +│  string   standard   mandatory    │ Default: the value of the variable │ +│ multiple  │ "leadership.leader". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.adoc b/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.adoc new file mode 100644 index 000000000..3f1639678 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.adoc @@ -0,0 +1,36 @@ +== leader + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**leader.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +Leader. + +**Default**: + +* a +* b +| + +**leader.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` | +Follower. +|==== + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**variable** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `unique` `multiple` | +Variable. + +**Default**: the value of the variable "leader.follower". +|==== + diff --git a/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.json b/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.json new file mode 100644 index 000000000..aa30bebc1 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.json @@ -0,0 +1,106 @@ +{ + "leader": { + "type": "leadership", + "informations": { + "paths": [ + "leader" + ], + "names": [ + "leader" + ], + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "leader.leader": { + "type": "variable", + "default": [ + "a", + "b" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "leader.leader" + ], + "names": [ + "leader" + ] + }, + "leader.follower": { + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + } + ], + "paths": [ + "leader.follower" + ], + "names": [ + "follower" + ] + } + } + }, + "variable": { + "type": "variable", + "default": "the value of the variable \"leader.follower\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "variable" + ], + "names": [ + "variable" + ] + } +} \ No newline at end of file diff --git a/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.md b/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.md new file mode 100644 index 000000000..c63e44708 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.md @@ -0,0 +1,15 @@ +# leader + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **leader.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | Leader.
**Default**:
- a
- b | +| **leader.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` | Follower. | + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **variable**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `unique` `multiple` | Variable.
**Default**: the value of the variable "leader.follower". | + diff --git a/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.sh b/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.sh new file mode 100644 index 000000000..c9f2338f7 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-outside-follower-no-mandatory.sh @@ -0,0 +1,29 @@ + + +leader + + + standard  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ leader.leader │ Leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - a │ +│ │ - b │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ leader.follower │ Follower. │ +│  string   standard  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ variable │ Variable. │ +│  string   standard   unique    │ Default: the value of the variable │ +│ multiple  │ "leader.follower". │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/40_9leadership-calculation-variable.adoc b/tests/results/test/40_9leadership-calculation-variable.adoc new file mode 100644 index 000000000..c46b874a6 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable.adoc @@ -0,0 +1,43 @@ +[cols="1a,1a"] +|==== +| Variable | Description +| + +**calculate** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A calculated variable. + +**Default**: + +* value1 +* value2 +|==== + +== a leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**leader.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: the value of the variable "calculate". +| + +**leader.follower1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | +A follower. + +**Default**: val11 +| + +**leader.follower2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | +An other follower. + +**Default**: val21 +|==== + diff --git a/tests/results/test/40_9leadership-calculation-variable.json b/tests/results/test/40_9leadership-calculation-variable.json new file mode 100644 index 000000000..46bdd5fd3 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable.json @@ -0,0 +1,152 @@ +{ + "calculate": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "calculate" + ], + "names": [ + "calculate" + ], + "descriptions": [ + "A calculated variable." + ] + }, + "leader": { + "type": "leadership", + "informations": { + "paths": [ + "leader" + ], + "names": [ + "leader" + ], + "description": "a leadership", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "leader.leader": { + "type": "variable", + "default": "the value of the variable \"calculate\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "leader.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "leader.follower1": { + "type": "variable", + "default": "val11", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "leader.follower1" + ], + "names": [ + "follower1" + ], + "descriptions": [ + "A follower." + ] + }, + "leader.follower2": { + "type": "variable", + "default": "val21", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "leader.follower2" + ], + "names": [ + "follower2" + ], + "descriptions": [ + "An other follower." + ] + } + } + } +} \ No newline at end of file diff --git a/tests/results/test/40_9leadership-calculation-variable.md b/tests/results/test/40_9leadership-calculation-variable.md new file mode 100644 index 000000000..52a4dd2ec --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable.md @@ -0,0 +1,16 @@ +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **calculate**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A calculated variable.
**Default**:
- value1
- value2 | + +# a leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **leader.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**: the value of the variable "calculate". | +| **leader.follower1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.
**Default**: val11 | +| **leader.follower2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An other follower.
**Default**: val21 | + diff --git a/tests/results/test/40_9leadership-calculation-variable.sh b/tests/results/test/40_9leadership-calculation-variable.sh new file mode 100644 index 000000000..898e52145 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable.sh @@ -0,0 +1,32 @@ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ calculate │ A calculated variable. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + +a leadership + + + standard  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ leader.leader │ A leader. │ +│  string   standard   mandatory    │ Default: the value of the variable │ +│ unique   multiple  │ "calculate". │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ leader.follower1 │ A follower. │ +│  string   standard   mandatory  │ Default: val11 │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ leader.follower2 │ An other follower. │ +│  string   standard   mandatory  │ Default: val21 │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/40_9leadership-calculation-variable_leader_follower.adoc b/tests/results/test/40_9leadership-calculation-variable_leader_follower.adoc new file mode 100644 index 000000000..3dfac472e --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable_leader_follower.adoc @@ -0,0 +1,48 @@ +== a leadership + +`basic` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**leadership_1.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**leadership_1.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` | +A follower. +|==== + +== a second leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**leadership_2.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: the value of the variable "leadership_1.follower". +| + +**leadership_2.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | +A follower. + +**Default**: val +|==== + diff --git a/tests/results/test/40_9leadership-calculation-variable_leader_follower.json b/tests/results/test/40_9leadership-calculation-variable_leader_follower.json new file mode 100644 index 000000000..07386d8a0 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable_leader_follower.json @@ -0,0 +1,174 @@ +{ + "leadership_1": { + "type": "leadership", + "informations": { + "paths": [ + "leadership_1" + ], + "names": [ + "leadership_1" + ], + "description": "a leadership", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "leadership_1.leader": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "leadership_1.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "leadership_1.follower": { + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "basic" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "leadership_1.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + }, + "leadership_2": { + "type": "leadership", + "informations": { + "paths": [ + "leadership_2" + ], + "names": [ + "leadership_2" + ], + "description": "a second leadership", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "leadership_2.leader": { + "type": "variable", + "default": "the value of the variable \"leadership_1.follower\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "leadership_2.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "leadership_2.follower": { + "type": "variable", + "default": "val", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "leadership_2.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + } +} \ No newline at end of file diff --git a/tests/results/test/40_9leadership-calculation-variable_leader_follower.md b/tests/results/test/40_9leadership-calculation-variable_leader_follower.md new file mode 100644 index 000000000..5ebe52a50 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable_leader_follower.md @@ -0,0 +1,22 @@ +# a leadership + +`basic` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **leadership_1.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **leadership_1.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A follower. | + +# a second leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **leadership_2.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**: the value of the variable "leadership_1.follower". | +| **leadership_2.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.
**Default**: val | + diff --git a/tests/results/test/40_9leadership-calculation-variable_leader_follower.sh b/tests/results/test/40_9leadership-calculation-variable_leader_follower.sh new file mode 100644 index 000000000..212ae1f99 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable_leader_follower.sh @@ -0,0 +1,43 @@ + + +a leadership + + + basic  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ leadership_1.leader │ A leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ leadership_1.follower │ A follower. │ +│  string   basic   mandatory  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + +a second leadership + + + standard  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ leadership_2.leader │ A leader. │ +│  string   standard   mandatory    │ Default: the value of the variable │ +│ unique   multiple  │ "leadership_1.follower". │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ leadership_2.follower │ A follower. │ +│  string   standard   mandatory  │ Default: val │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.adoc b/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.adoc new file mode 100644 index 000000000..2fd956029 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.adoc @@ -0,0 +1,51 @@ +== a leadership + +`basic` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**leadership_1.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**leadership_1.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` | +A follower. +|==== + +== a second leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**leadership_2.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**leadership_2.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `multiple` | +A follower. + +**Default**: the value of the variable "leadership_1.leader". +|==== + diff --git a/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.json b/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.json new file mode 100644 index 000000000..4e12a78b4 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.json @@ -0,0 +1,181 @@ +{ + "leadership_1": { + "type": "leadership", + "informations": { + "paths": [ + "leadership_1" + ], + "names": [ + "leadership_1" + ], + "description": "a leadership", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "leadership_1.leader": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "leadership_1.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "leadership_1.follower": { + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "basic" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "leadership_1.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + }, + "leadership_2": { + "type": "leadership", + "informations": { + "paths": [ + "leadership_2" + ], + "names": [ + "leadership_2" + ], + "description": "a second leadership", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "leadership_2.leader": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "leadership_2.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "leadership_2.follower": { + "type": "variable", + "default": "the value of the variable \"leadership_1.leader\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "leadership_2.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + } +} \ No newline at end of file diff --git a/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.md b/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.md new file mode 100644 index 000000000..44b9d7e8e --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.md @@ -0,0 +1,22 @@ +# a leadership + +`basic` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **leadership_1.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **leadership_1.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A follower. | + +# a second leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **leadership_2.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **leadership_2.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `multiple` | A follower.
**Default**: the value of the variable "leadership_1.leader". | + diff --git a/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.sh b/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.sh new file mode 100644 index 000000000..385a0a223 --- /dev/null +++ b/tests/results/test/40_9leadership-calculation-variable_leader_follower_not_same.sh @@ -0,0 +1,45 @@ + + +a leadership + + + basic  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ leadership_1.leader │ A leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ leadership_1.follower │ A follower. │ +│  string   basic   mandatory  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + +a second leadership + + + standard  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ leadership_2.leader │ A leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ leadership_2.follower │ A follower. │ +│  string   standard   mandatory    │ Default: the value of the variable │ +│ multiple  │ "leadership_1.leader". │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/60_0family_dynamic_upper_char.adoc b/tests/results/test/60_0family_dynamic_upper_char.adoc new file mode 100644 index 000000000..5d5d77884 --- /dev/null +++ b/tests/results/test/60_0family_dynamic_upper_char.adoc @@ -0,0 +1,33 @@ +[cols="1a,1a"] +|==== +| Variable | Description +| + +**var** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A suffix variable. + +**Default**: + +* Val1 +* VAL2 +|==== + +== A dynamic family + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "var". + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**dyn__Val1__.var** + +**dyn__VAL2__.var** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` | +A dynamic variable. +|==== + diff --git a/tests/results/test/60_0family_dynamic_upper_char.json b/tests/results/test/60_0family_dynamic_upper_char.json new file mode 100644 index 000000000..b69589cab --- /dev/null +++ b/tests/results/test/60_0family_dynamic_upper_char.json @@ -0,0 +1,94 @@ +{ + "var": { + "type": "variable", + "default": [ + "Val1", + "VAL2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "var" + ], + "names": [ + "var" + ], + "descriptions": [ + "A suffix variable." + ] + }, + "dyn{{ identifier }}": { + "type": "dynamic", + "informations": { + "paths": [ + "dynVal1", + "dynVAL2" + ], + "names": [ + "dynval1", + "dynval2" + ], + "description": "A dynamic family", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "identifiers": "the value of the variable \"var\".", + "help": [ + "This family builds families dynamically." + ] + }, + "children": { + "dyn{{ identifier }}.var": { + "paths": [ + "dynVal1.var", + "dynVAL2.var" + ], + "names": [ + "var", + "var" + ], + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "basic" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "descriptions": [ + "A dynamic variable." + ] + } + } + } +} \ No newline at end of file diff --git a/tests/results/test/60_0family_dynamic_upper_char.md b/tests/results/test/60_0family_dynamic_upper_char.md new file mode 100644 index 000000000..cc8cc7337 --- /dev/null +++ b/tests/results/test/60_0family_dynamic_upper_char.md @@ -0,0 +1,16 @@ +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **var**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A suffix variable.
**Default**:
- Val1
- VAL2 | + +# A dynamic family + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "var". + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **dyn*Val1*.var**
**dyn*VAL2*.var**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A dynamic variable. | + diff --git a/tests/results/test/60_0family_dynamic_upper_char.sh b/tests/results/test/60_0family_dynamic_upper_char.sh new file mode 100644 index 000000000..744e9c448 --- /dev/null +++ b/tests/results/test/60_0family_dynamic_upper_char.sh @@ -0,0 +1,29 @@ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ var │ A suffix variable. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - Val1 │ +│ │ - VAL2 │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + +A dynamic family + + + basic  + + +This family builds families dynamically. + + +Identifiers: the value of the variable "var". + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ dynVal1.var │ A dynamic variable. │ +│ dynVAL2.var │ │ +│  string   basic   mandatory  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/60_5family_dynamic_calc_variable_empty.adoc b/tests/results/test/60_5family_dynamic_calc_variable_empty.adoc index 29995902b..509a231d1 100644 --- a/tests/results/test/60_5family_dynamic_calc_variable_empty.adoc +++ b/tests/results/test/60_5family_dynamic_calc_variable_empty.adoc @@ -39,6 +39,6 @@ A dynamic variable. **var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | A variable calculated. + -**Default**: the values of undocumented variables. +**Default**: the value of the variable "dynval1.var". |==== diff --git a/tests/results/test/60_5family_dynamic_calc_variable_empty.json b/tests/results/test/60_5family_dynamic_calc_variable_empty.json index 248305ce8..d0a8ccd7a 100644 --- a/tests/results/test/60_5family_dynamic_calc_variable_empty.json +++ b/tests/results/test/60_5family_dynamic_calc_variable_empty.json @@ -88,7 +88,7 @@ }, "var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": "the value of the variable \"dynval1.var\".", "properties": [ { "type": "type", diff --git a/tests/results/test/60_5family_dynamic_calc_variable_empty.md b/tests/results/test/60_5family_dynamic_calc_variable_empty.md index 6e9d31baa..146e61e4b 100644 --- a/tests/results/test/60_5family_dynamic_calc_variable_empty.md +++ b/tests/results/test/60_5family_dynamic_calc_variable_empty.md @@ -16,5 +16,5 @@ This family builds families dynamically. | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the values of undocumented variables. | +| **var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the value of the variable "dynval1.var". | diff --git a/tests/results/test/60_5family_dynamic_calc_variable_empty.sh b/tests/results/test/60_5family_dynamic_calc_variable_empty.sh index de604e04b..6b6911c2b 100644 --- a/tests/results/test/60_5family_dynamic_calc_variable_empty.sh +++ b/tests/results/test/60_5family_dynamic_calc_variable_empty.sh @@ -31,6 +31,6 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ var2 │ A variable calculated. │ -│  string   standard   mandatory  │ Default: the values of undocumented │ -│ │ variables. │ +│  string   standard   mandatory  │ Default: the value of the variable │ +│ │ "dynval1.var". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.adoc b/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.adoc index 462cbbc41..8bba30d2e 100644 --- a/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.adoc +++ b/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.adoc @@ -40,6 +40,6 @@ A variable inside dynamic family. + **var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` | A variable. + -**Default**: the values of undocumented variables. +**Default**: the value of the variable "dyn_val1.var". |==== diff --git a/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.json b/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.json index 42b629934..65850a2e7 100644 --- a/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.json +++ b/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.json @@ -90,7 +90,7 @@ }, "var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": "the value of the variable \"dyn_val1.var\".", "properties": [ { "type": "type", diff --git a/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.md b/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.md index 4a568dfb4..75cfc82d2 100644 --- a/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.md +++ b/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.md @@ -16,5 +16,5 @@ This family builds families dynamically. | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` | A variable.
**Default**: the values of undocumented variables. | +| **var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` | A variable.
**Default**: the value of the variable "dyn_val1.var". | diff --git a/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.sh b/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.sh index 73a62ccab..51745dc77 100644 --- a/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.sh +++ b/tests/results/test/60_5family_dynamic_variable_outside_suffix_empty.sh @@ -31,6 +31,6 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ var2 │ A variable. │ -│  string   standard  │ Default: the values of undocumented │ -│ │ variables. │ +│  string   standard  │ Default: the value of the variable │ +│ │ "dyn_val1.var". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_multi3.md b/tests/results/test_examples/04_5disabled_calculation_variable_multi3.md deleted file mode 100644 index dbbb6eb94..000000000 --- a/tests/results/test_examples/04_5disabled_calculation_variable_multi3.md +++ /dev/null @@ -1,17 +0,0 @@ -# Example with mandatory variables not filled in - -```yaml ---- -variable: - - example -``` -# Example with all variables modifiable - -```yaml ---- -condition: - - val1 - - val2 -variable: - - example -``` diff --git a/tests/results/test_examples/40_0leadership_leader_follower.md b/tests/results/test_examples/40_0leadership_leader_follower.md new file mode 100644 index 000000000..bcf2738da --- /dev/null +++ b/tests/results/test_examples/40_0leadership_leader_follower.md @@ -0,0 +1,10 @@ +# Example with all variables modifiable + +```yaml +--- +leadership: + - leader: value1 + follower: value1 + - leader: value2 + follower: value2 +``` diff --git a/tests/results/test_examples/40_9calculation_variable_leader_follower_multi_inside.md b/tests/results/test_examples/40_9calculation_variable_leader_follower_multi_inside.md new file mode 100644 index 000000000..b21623cf1 --- /dev/null +++ b/tests/results/test_examples/40_9calculation_variable_leader_follower_multi_inside.md @@ -0,0 +1,12 @@ +# Example with all variables modifiable + +```yaml +--- +leadership: + - leader: value1 + follower: + - value1 + - leader: value2 + follower: + - value2 +``` diff --git a/tests/results/test_examples/40_9leadership-calculation-outside-follower-no-mandatory.md b/tests/results/test_examples/40_9leadership-calculation-outside-follower-no-mandatory.md new file mode 100644 index 000000000..0f7dd4aae --- /dev/null +++ b/tests/results/test_examples/40_9leadership-calculation-outside-follower-no-mandatory.md @@ -0,0 +1,13 @@ +# Example with all variables modifiable + +```yaml +--- +leader: + - leader: a + follower: example + - leader: b + follower: example +variable: + - + - +``` diff --git a/tests/results/test_examples/40_9leadership-calculation-variable.md b/tests/results/test_examples/40_9leadership-calculation-variable.md new file mode 100644 index 000000000..a8278f4c5 --- /dev/null +++ b/tests/results/test_examples/40_9leadership-calculation-variable.md @@ -0,0 +1,15 @@ +# Example with all variables modifiable + +```yaml +--- +calculate: + - value1 + - value2 +leader: + - leader: value1 + follower1: val11 + follower2: val21 + - leader: value2 + follower1: val11 + follower2: val21 +``` diff --git a/tests/results/test_examples/40_9leadership-calculation-variable_leader_follower.md b/tests/results/test_examples/40_9leadership-calculation-variable_leader_follower.md new file mode 100644 index 000000000..020a44235 --- /dev/null +++ b/tests/results/test_examples/40_9leadership-calculation-variable_leader_follower.md @@ -0,0 +1,15 @@ +# Example with all variables modifiable + +```yaml +--- +leadership_1: + - leader: value1 + follower: example + - leader: value2 + follower: example +leadership_2: + - leader: + follower: val + - leader: + follower: val +``` diff --git a/tests/results/test_examples/40_9leadership-calculation-variable_leader_follower_not_same.md b/tests/results/test_examples/40_9leadership-calculation-variable_leader_follower_not_same.md new file mode 100644 index 000000000..498b576a7 --- /dev/null +++ b/tests/results/test_examples/40_9leadership-calculation-variable_leader_follower_not_same.md @@ -0,0 +1,19 @@ +# Example with all variables modifiable + +```yaml +--- +leadership_1: + - leader: value1 + follower: example + - leader: value2 + follower: example +leadership_2: + - leader: value1 + follower: + - value1 + - value2 + - leader: value2 + follower: + - value1 + - value2 +``` diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_multi2.md b/tests/results/test_examples/60_0family_dynamic_upper_char.md similarity index 50% rename from tests/results/test_examples/04_5disabled_calculation_variable_multi2.md rename to tests/results/test_examples/60_0family_dynamic_upper_char.md index a78f2b0a8..7980419e9 100644 --- a/tests/results/test_examples/04_5disabled_calculation_variable_multi2.md +++ b/tests/results/test_examples/60_0family_dynamic_upper_char.md @@ -2,17 +2,20 @@ ```yaml --- -condition: - - example -variable: - - example +dynval1: + var: example +dynval2: + var: example ``` # Example with all variables modifiable ```yaml --- -condition: - - example -variable: - - example +var: + - Val1 + - VAL2 +dynval1: + var: example +dynval2: + var: example ``` diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.adoc b/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.adoc deleted file mode 100644 index ac72a9364..000000000 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.adoc +++ /dev/null @@ -1,18 +0,0 @@ -== Variables for "Rougail" - -[cols="1a,1a"] -|==== -| Variable | Description -| - -**rougail.condition** + -`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `unique` `multiple` | -A condition. -| - -**rougail.variable** + -`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` `unique` `multiple` | -A variable. + -**Disabled**: when the variable "rougail.condition" has the value "true". -|==== - diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.adoc b/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.adoc deleted file mode 100644 index 20b790355..000000000 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.adoc +++ /dev/null @@ -1,22 +0,0 @@ -== Variables for "Rougail" - -[cols="1a,1a"] -|==== -| Variable | Description -| - -**rougail.condition** + -`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | -A condition. + -**Default**: - -* val1 -* val2 -| - -**rougail.variable** + -`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` `unique` `multiple` | -A variable. + -**Disabled**: when the variable "rougail.condition" has the value "true". -|==== - diff --git a/tests/results/test_namespace/40_0leadership_leader_follower.adoc b/tests/results/test_namespace/40_0leadership_leader_follower.adoc new file mode 100644 index 000000000..b12b92b04 --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_leader_follower.adoc @@ -0,0 +1,28 @@ +== Variables for "Rougail" + +=== a leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.leadership.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**rougail.leadership.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | +A follower. + +**Default**: the value of the variable "rougail.leadership.leader". +|==== + diff --git a/tests/results/test_namespace/40_0leadership_leader_follower.json b/tests/results/test_namespace/40_0leadership_leader_follower.json new file mode 100644 index 000000000..5a6fa706c --- /dev/null +++ b/tests/results/test_namespace/40_0leadership_leader_follower.json @@ -0,0 +1,110 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ] + }, + "children": { + "leadership": { + "type": "leadership", + "informations": { + "paths": [ + "rougail.leadership" + ], + "names": [ + "leadership" + ], + "description": "a leadership", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "rougail.leadership.leader": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leadership.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "rougail.leadership.follower": { + "type": "variable", + "default": "the value of the variable \"rougail.leadership.leader\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "rougail.leadership.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.md b/tests/results/test_namespace/40_0leadership_leader_follower.md similarity index 78% rename from tests/results/test_namespace/04_5disabled_calculation_variable_multi2.md rename to tests/results/test_namespace/40_0leadership_leader_follower.md index d25239e68..9befeb800 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.md +++ b/tests/results/test_namespace/40_0leadership_leader_follower.md @@ -1,7 +1,13 @@ # Variables for "Rougail" -| Variable                                                                                                                                 | Description                                                                                                                              | -|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.condition**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` `unique` `multiple` | A condition. | -| **rougail.variable**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* `unique` `multiple` | A variable.
**Disabled**: when the variable "rougail.condition" has the value "true". | +## a leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.leadership.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **rougail.leadership.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.
**Default**: the value of the variable "rougail.leadership.leader". | diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.sh b/tests/results/test_namespace/40_0leadership_leader_follower.sh similarity index 69% rename from tests/results/test_namespace/04_5disabled_calculation_variable_multi3.sh rename to tests/results/test_namespace/40_0leadership_leader_follower.sh index b373b2e29..2c93b285c 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.sh +++ b/tests/results/test_namespace/40_0leadership_leader_follower.sh @@ -3,16 +3,26 @@ Variables for "Rougail" + + + a leadership + + + standard  + + +This family contains lists of variable blocks. + + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ rougail.condition │ A condition. │ +│ rougail.leadership.leader │ A leader. │ │  string   standard   mandatory    │ Default: │ -│ unique   multiple  │ - val1 │ -│ │ - val2 │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ ├───────────────────────────────────────┼──────────────────────────────────────┤ -│ rougail.variable │ A variable. │ -│  string   basic   mandatory    │ Disabled: when the variable │ -│ disabled   unique   multiple  │ "rougail.condition" has the value │ -│ │ "true". │ +│ rougail.leadership.follower │ A follower. │ +│  string   standard   mandatory  │ Default: the value of the variable │ +│ │ "rougail.leadership.leader". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.adoc b/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.adoc new file mode 100644 index 000000000..433a9001a --- /dev/null +++ b/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.adoc @@ -0,0 +1,28 @@ +== Variables for "Rougail" + +=== a leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.leadership.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**rougail.leadership.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `multiple` | +A follower. + +**Default**: the value of the variable "rougail.leadership.leader". +|==== + diff --git a/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.json b/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.json new file mode 100644 index 000000000..b6d4bedd9 --- /dev/null +++ b/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.json @@ -0,0 +1,116 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ] + }, + "children": { + "leadership": { + "type": "leadership", + "informations": { + "paths": [ + "rougail.leadership" + ], + "names": [ + "leadership" + ], + "description": "a leadership", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "rougail.leadership.leader": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leadership.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "rougail.leadership.follower": { + "type": "variable", + "default": [ + "the value of the variable \"rougail.leadership.leader\"." + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leadership.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable_multi2.md b/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.md similarity index 78% rename from tests/results/test/04_5disabled_calculation_variable_multi2.md rename to tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.md index 9caa07c8c..1bc2973c9 100644 --- a/tests/results/test/04_5disabled_calculation_variable_multi2.md +++ b/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.md @@ -1,5 +1,13 @@ -| Variable                                                                                                                                 | Description                                                                                                                              | -|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **condition**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` `unique` `multiple` | A condition. | -| **variable**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* `unique` `multiple` | A variable.
**Disabled**: when the variable "condition" has the value "true". | +# Variables for "Rougail" + +## a leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.leadership.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **rougail.leadership.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `multiple` | A follower.
**Default**: the value of the variable "rougail.leadership.leader". | diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.sh b/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.sh similarity index 60% rename from tests/results/test_namespace/04_5disabled_calculation_variable_multi2.sh rename to tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.sh index 3d6dfba7a..9380a8917 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.sh +++ b/tests/results/test_namespace/40_9calculation_variable_leader_follower_multi_inside.sh @@ -3,15 +3,26 @@ Variables for "Rougail" + + + a leadership + + + standard  + + +This family contains lists of variable blocks. + + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ rougail.condition │ A condition. │ -│  string   basic   mandatory   unique  │ │ -│ multiple  │ │ +│ rougail.leadership.leader │ A leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ ├───────────────────────────────────────┼──────────────────────────────────────┤ -│ rougail.variable │ A variable. │ -│  string   basic   mandatory    │ Disabled: when the variable │ -│ disabled   unique   multiple  │ "rougail.condition" has the value │ -│ │ "true". │ +│ rougail.leadership.follower │ A follower. │ +│  string   standard   mandatory    │ Default: the value of the variable │ +│ multiple  │ "rougail.leadership.leader". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.adoc b/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.adoc new file mode 100644 index 000000000..a9bf599ed --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.adoc @@ -0,0 +1,38 @@ +== Variables for "Rougail" + +=== rougail.leader + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.leader.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +Leader. + +**Default**: + +* a +* b +| + +**rougail.leader.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` | +Follower. +|==== + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.variable** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `unique` `multiple` | +Variable. + +**Default**: the value of the variable "rougail.leader.follower". +|==== + diff --git a/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.json b/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.json new file mode 100644 index 000000000..790705031 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.json @@ -0,0 +1,126 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ] + }, + "children": { + "leader": { + "type": "leadership", + "informations": { + "paths": [ + "rougail.leader" + ], + "names": [ + "leader" + ], + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "rougail.leader.leader": { + "type": "variable", + "default": [ + "a", + "b" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leader.leader" + ], + "names": [ + "leader" + ] + }, + "rougail.leader.follower": { + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + } + ], + "paths": [ + "rougail.leader.follower" + ], + "names": [ + "follower" + ] + } + } + }, + "rougail.variable": { + "type": "variable", + "default": "the value of the variable \"rougail.leader.follower\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.variable" + ], + "names": [ + "variable" + ] + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.md b/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.md new file mode 100644 index 000000000..c5e1710bf --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.md @@ -0,0 +1,17 @@ +# Variables for "Rougail" + +## rougail.leader + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.leader.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | Leader.
**Default**:
- a
- b | +| **rougail.leader.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` | Follower. | + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.variable**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `unique` `multiple` | Variable.
**Default**: the value of the variable "rougail.leader.follower". | + diff --git a/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.sh b/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.sh new file mode 100644 index 000000000..a9b6fa921 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-outside-follower-no-mandatory.sh @@ -0,0 +1,34 @@ + + +Variables for "Rougail" + + + + + rougail.leader + + + standard  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.leader.leader │ Leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - a │ +│ │ - b │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.leader.follower │ Follower. │ +│  string   standard  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.variable │ Variable. │ +│  string   standard   unique    │ Default: the value of the variable │ +│ multiple  │ "rougail.leader.follower". │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable.adoc b/tests/results/test_namespace/40_9leadership-calculation-variable.adoc new file mode 100644 index 000000000..de9291527 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable.adoc @@ -0,0 +1,45 @@ +== Variables for "Rougail" + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.calculate** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A calculated variable. + +**Default**: + +* value1 +* value2 +|==== + +=== a leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.leader.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: the value of the variable "rougail.calculate". +| + +**rougail.leader.follower1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | +A follower. + +**Default**: val11 +| + +**rougail.leader.follower2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | +An other follower. + +**Default**: val21 +|==== + diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable.json b/tests/results/test_namespace/40_9leadership-calculation-variable.json new file mode 100644 index 000000000..e61ac964f --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable.json @@ -0,0 +1,172 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ] + }, + "children": { + "rougail.calculate": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.calculate" + ], + "names": [ + "calculate" + ], + "descriptions": [ + "A calculated variable." + ] + }, + "leader": { + "type": "leadership", + "informations": { + "paths": [ + "rougail.leader" + ], + "names": [ + "leader" + ], + "description": "a leadership", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "rougail.leader.leader": { + "type": "variable", + "default": "the value of the variable \"rougail.calculate\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leader.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "rougail.leader.follower1": { + "type": "variable", + "default": "val11", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "rougail.leader.follower1" + ], + "names": [ + "follower1" + ], + "descriptions": [ + "A follower." + ] + }, + "rougail.leader.follower2": { + "type": "variable", + "default": "val21", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "rougail.leader.follower2" + ], + "names": [ + "follower2" + ], + "descriptions": [ + "An other follower." + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable.md b/tests/results/test_namespace/40_9leadership-calculation-variable.md new file mode 100644 index 000000000..16600b8aa --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable.md @@ -0,0 +1,18 @@ +# Variables for "Rougail" + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.calculate**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A calculated variable.
**Default**:
- value1
- value2 | + +## a leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.leader.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**: the value of the variable "rougail.calculate". | +| **rougail.leader.follower1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.
**Default**: val11 | +| **rougail.leader.follower2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An other follower.
**Default**: val21 | + diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable.sh b/tests/results/test_namespace/40_9leadership-calculation-variable.sh new file mode 100644 index 000000000..a22cd7d8c --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable.sh @@ -0,0 +1,37 @@ + + +Variables for "Rougail" + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.calculate │ A calculated variable. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + + a leadership + + + standard  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.leader.leader │ A leader. │ +│  string   standard   mandatory    │ Default: the value of the variable │ +│ unique   multiple  │ "rougail.calculate". │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.leader.follower1 │ A follower. │ +│  string   standard   mandatory  │ Default: val11 │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.leader.follower2 │ An other follower. │ +│  string   standard   mandatory  │ Default: val21 │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.adoc b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.adoc new file mode 100644 index 000000000..9bf7d9d02 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.adoc @@ -0,0 +1,50 @@ +== Variables for "Rougail" + +=== a leadership + +`basic` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.leadership_1.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**rougail.leadership_1.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` | +A follower. +|==== + +=== a second leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.leadership_2.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: the value of the variable "rougail.leadership_1.follower". +| + +**rougail.leadership_2.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | +A follower. + +**Default**: val +|==== + diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.json b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.json new file mode 100644 index 000000000..be21b50fe --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.json @@ -0,0 +1,194 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ] + }, + "children": { + "leadership_1": { + "type": "leadership", + "informations": { + "paths": [ + "rougail.leadership_1" + ], + "names": [ + "leadership_1" + ], + "description": "a leadership", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "rougail.leadership_1.leader": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leadership_1.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "rougail.leadership_1.follower": { + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "basic" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "rougail.leadership_1.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + }, + "leadership_2": { + "type": "leadership", + "informations": { + "paths": [ + "rougail.leadership_2" + ], + "names": [ + "leadership_2" + ], + "description": "a second leadership", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "rougail.leadership_2.leader": { + "type": "variable", + "default": "the value of the variable \"rougail.leadership_1.follower\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leadership_2.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "rougail.leadership_2.follower": { + "type": "variable", + "default": "val", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "rougail.leadership_2.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.md b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.md new file mode 100644 index 000000000..09038d70d --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.md @@ -0,0 +1,24 @@ +# Variables for "Rougail" + +## a leadership + +`basic` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.leadership_1.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **rougail.leadership_1.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A follower. | + +## a second leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.leadership_2.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**: the value of the variable "rougail.leadership_1.follower". | +| **rougail.leadership_2.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.
**Default**: val | + diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.sh b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.sh new file mode 100644 index 000000000..537caa3b5 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower.sh @@ -0,0 +1,48 @@ + + +Variables for "Rougail" + + + + + a leadership + + + basic  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.leadership_1.leader │ A leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.leadership_1.follower │ A follower. │ +│  string   basic   mandatory  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + + a second leadership + + + standard  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.leadership_2.leader │ A leader. │ +│  string   standard   mandatory    │ Default: the value of the variable │ +│ unique   multiple  │ "rougail.leadership_1.follower". │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.leadership_2.follower │ A follower. │ +│  string   standard   mandatory  │ Default: val │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.adoc b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.adoc new file mode 100644 index 000000000..e8d820725 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.adoc @@ -0,0 +1,53 @@ +== Variables for "Rougail" + +=== a leadership + +`basic` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.leadership_1.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**rougail.leadership_1.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` | +A follower. +|==== + +=== a second leadership + +`standard` + +This family contains lists of variable blocks. + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.leadership_2.leader** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A leader. + +**Default**: + +* value1 +* value2 +| + +**rougail.leadership_2.follower** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `multiple` | +A follower. + +**Default**: the value of the variable "rougail.leadership_1.leader". +|==== + diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.json b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.json new file mode 100644 index 000000000..d7575fbd9 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.json @@ -0,0 +1,201 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ] + }, + "children": { + "leadership_1": { + "type": "leadership", + "informations": { + "paths": [ + "rougail.leadership_1" + ], + "names": [ + "leadership_1" + ], + "description": "a leadership", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "rougail.leadership_1.leader": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leadership_1.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "rougail.leadership_1.follower": { + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "basic" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "paths": [ + "rougail.leadership_1.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + }, + "leadership_2": { + "type": "leadership", + "informations": { + "paths": [ + "rougail.leadership_2" + ], + "names": [ + "leadership_2" + ], + "description": "a second leadership", + "properties": [ + { + "type": "mode", + "name": "standard" + } + ], + "help": [ + "This family contains lists of variable blocks." + ] + }, + "children": { + "rougail.leadership_2.leader": { + "type": "variable", + "default": [ + "value1", + "value2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leadership_2.leader" + ], + "names": [ + "leader" + ], + "descriptions": [ + "A leader." + ] + }, + "rougail.leadership_2.follower": { + "type": "variable", + "default": "the value of the variable \"rougail.leadership_1.leader\".", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.leadership_2.follower" + ], + "names": [ + "follower" + ], + "descriptions": [ + "A follower." + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.md b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.md new file mode 100644 index 000000000..0d3609672 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.md @@ -0,0 +1,24 @@ +# Variables for "Rougail" + +## a leadership + +`basic` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.leadership_1.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **rougail.leadership_1.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A follower. | + +## a second leadership + +`standard` + +This family contains lists of variable blocks. + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.leadership_2.leader**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.
**Default**:
- value1
- value2 | +| **rougail.leadership_2.follower**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `multiple` | A follower.
**Default**: the value of the variable "rougail.leadership_1.leader". | + diff --git a/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.sh b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.sh new file mode 100644 index 000000000..bbb0e4134 --- /dev/null +++ b/tests/results/test_namespace/40_9leadership-calculation-variable_leader_follower_not_same.sh @@ -0,0 +1,50 @@ + + +Variables for "Rougail" + + + + + a leadership + + + basic  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.leadership_1.leader │ A leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.leadership_1.follower │ A follower. │ +│  string   basic   mandatory  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + + a second leadership + + + standard  + + +This family contains lists of variable blocks. + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.leadership_2.leader │ A leader. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - value1 │ +│ │ - value2 │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.leadership_2.follower │ A follower. │ +│  string   standard   mandatory    │ Default: the value of the variable │ +│ multiple  │ "rougail.leadership_1.leader". │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_0family_dynamic_upper_char.adoc b/tests/results/test_namespace/60_0family_dynamic_upper_char.adoc new file mode 100644 index 000000000..ded13d683 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_upper_char.adoc @@ -0,0 +1,35 @@ +== Variables for "Rougail" + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.var** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A suffix variable. + +**Default**: + +* Val1 +* VAL2 +|==== + +=== A dynamic family + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var". + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.dyn__Val1__.var** + +**rougail.dyn__VAL2__.var** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` | +A dynamic variable. +|==== + diff --git a/tests/results/test_namespace/60_0family_dynamic_upper_char.json b/tests/results/test_namespace/60_0family_dynamic_upper_char.json new file mode 100644 index 000000000..e8a02d4de --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_upper_char.json @@ -0,0 +1,114 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ] + }, + "children": { + "rougail.var": { + "type": "variable", + "default": [ + "Val1", + "VAL2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.var" + ], + "names": [ + "var" + ], + "descriptions": [ + "A suffix variable." + ] + }, + "dyn{{ identifier }}": { + "type": "dynamic", + "informations": { + "paths": [ + "rougail.dynVal1", + "rougail.dynVAL2" + ], + "names": [ + "dynval1", + "dynval2" + ], + "description": "A dynamic family", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "identifiers": "the value of the variable \"rougail.var\".", + "help": [ + "This family builds families dynamically." + ] + }, + "children": { + "rougail.dyn{{ identifier }}.var": { + "paths": [ + "rougail.dynVal1.var", + "rougail.dynVAL2.var" + ], + "names": [ + "var", + "var" + ], + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "basic" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "descriptions": [ + "A dynamic variable." + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/60_0family_dynamic_upper_char.md b/tests/results/test_namespace/60_0family_dynamic_upper_char.md new file mode 100644 index 000000000..992b753b1 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_upper_char.md @@ -0,0 +1,18 @@ +# Variables for "Rougail" + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.var**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A suffix variable.
**Default**:
- Val1
- VAL2 | + +## A dynamic family + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var". + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.dyn*Val1*.var**
**rougail.dyn*VAL2*.var**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A dynamic variable. | + diff --git a/tests/results/test_namespace/60_0family_dynamic_upper_char.sh b/tests/results/test_namespace/60_0family_dynamic_upper_char.sh new file mode 100644 index 000000000..ec61dd1f2 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_upper_char.sh @@ -0,0 +1,34 @@ + + +Variables for "Rougail" + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.var │ A suffix variable. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - Val1 │ +│ │ - VAL2 │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + + A dynamic family + + + basic  + + +This family builds families dynamically. + + +Identifiers: the value of the variable "rougail.var". + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.dynVal1.var │ A dynamic variable. │ +│ rougail.dynVAL2.var │ │ +│  string   basic   mandatory  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.adoc b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.adoc index ee0e3d132..1fc76ce23 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.adoc @@ -17,9 +17,6 @@ A suffix variable. + **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | A variable calculated. + -**Default**: - -* the value of the variable "rougail.dyn__val1__.var" -* the value of the variable "rougail.dyn__val2__.var" +**Default**: the value of the variable "rougail.dynval1.var". |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.json index eb8ddbed9..475caf3aa 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.json @@ -53,10 +53,7 @@ }, "rougail.var2": { "type": "variable", - "default": [ - "the value of the variable \"rougail.dynval1.var\"", - "the value of the variable \"rougail.dynval2.var\"" - ], + "default": "the value of the variable \"rougail.dynval1.var\".", "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.md b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.md index 846cef2e5..c7e0185bc 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.md +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.md @@ -3,5 +3,5 @@ | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | **rougail.var1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `unique` `multiple` | A suffix variable.
**Examples**:
- val1
- val2 | -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**:
- the value of the variable "rougail.dyn*val1*.var"
- the value of the variable "rougail.dyn*val2*.var" | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the value of the variable "rougail.dynval1.var". | diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.sh b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.sh index 1342d0435..f053e4253 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.sh +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2.sh @@ -12,9 +12,6 @@ │ │ - val2 │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.var2 │ A variable calculated. │ -│  string   standard   mandatory  │ Default: │ -│ │ - the value of the variable │ -│ │ "rougail.dynval1.var" │ -│ │ - the value of the variable │ -│ │ "rougail.dynval2.var" │ +│  string   standard   mandatory  │ Default: the value of the variable │ +│ │ "rougail.dynval1.var". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.adoc b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.adoc index abfe9e516..3d7c7626e 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.adoc @@ -41,6 +41,6 @@ A dynamic variable. **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | A variable calculated. + -**Default**: the values of undocumented variables. +**Default**: the value of the variable "rougail.dynval1.var". |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.json index cc73be95f..24eab3a5f 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.json @@ -106,7 +106,7 @@ }, "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": "the value of the variable \"rougail.dynval1.var\".", "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.md b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.md index 1eff54ca0..ea61a90ff 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.md +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.md @@ -18,5 +18,5 @@ This family builds families dynamically. | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the value of the variable "rougail.dynval1.var". | diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.sh b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.sh index 749b53106..7a5b15a87 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.sh +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty.sh @@ -36,6 +36,6 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable calculated. │ -│  string   standard   mandatory  │ Default: the values of undocumented │ -│ │ variables. │ +│  string   standard   mandatory  │ Default: the value of the variable │ +│ │ "rougail.dynval1.var". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.adoc b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.adoc index 7aff2fad9..d66c52653 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.adoc @@ -37,6 +37,6 @@ A dynamic variable. **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | A variable calculated. + -**Default**: the value of an undocumented variable +**Default**: the value of the variable "rougail.dynval1.var". |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.json index bddfae985..dfc5174f2 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.json @@ -101,9 +101,7 @@ }, "rougail.var2": { "type": "variable", - "default": [ - "the value of an undocumented variable" - ], + "default": "the value of the variable \"rougail.dynval1.var\".", "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.md b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.md index 9a08b7666..07d89e6fe 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.md +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.md @@ -18,5 +18,5 @@ This family builds families dynamically. | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the value of an undocumented variable | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the value of the variable "rougail.dynval1.var". | diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.sh b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.sh index 7ad78edca..03e280390 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.sh +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_2.sh @@ -34,6 +34,6 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable calculated. │ -│  string   standard   mandatory  │ Default: the value of an │ -│ │ undocumented variable │ +│  string   standard   mandatory  │ Default: the value of the variable │ +│ │ "rougail.dynval1.var". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.adoc b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.adoc index 681d4653c..ce801f8f1 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.adoc @@ -8,7 +8,7 @@ **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | A variable calculated. + -**Default**: the values of undocumented variables. +**Default**: the value of the variable "rougail.dynval1.var". | **rougail.var1** + diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.json index 1d881aeea..e28b5f792 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.json @@ -19,7 +19,7 @@ "children": { "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": "the value of the variable \"rougail.dynval1.var\".", "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.md b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.md index 85f81aad8..1db054925 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.md +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.md @@ -2,7 +2,7 @@ | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the value of the variable "rougail.dynval1.var". | | **rougail.var1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `unique` `multiple` | A suffix variable.
**Examples**:
- val1
- val2 | ## rougail.dyn*val1* or rougail.dyn*val2* diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.sh b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.sh index a9cdf2fc9..1b2166bdf 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.sh +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_empty_3.sh @@ -7,8 +7,8 @@ ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable calculated. │ -│  string   standard   mandatory  │ Default: the values of undocumented │ -│ │ variables. │ +│  string   standard   mandatory  │ Default: the value of the variable │ +│ │ "rougail.dynval1.var". │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.var1 │ A suffix variable. │ │  string   standard   unique    │ Examples: │ diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.adoc b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.adoc index abfe9e516..3d7c7626e 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.adoc @@ -41,6 +41,6 @@ A dynamic variable. **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | A variable calculated. + -**Default**: the values of undocumented variables. +**Default**: the value of the variable "rougail.dynval1.var". |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.json b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.json index cc73be95f..24eab3a5f 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.json @@ -106,7 +106,7 @@ }, "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": "the value of the variable \"rougail.dynval1.var\".", "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.md b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.md index 1eff54ca0..ea61a90ff 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.md +++ b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.md @@ -18,5 +18,5 @@ This family builds families dynamically. | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable calculated.
**Default**: the value of the variable "rougail.dynval1.var". | diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.sh b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.sh index 749b53106..7a5b15a87 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.sh +++ b/tests/results/test_namespace/60_5family_dynamic_calc_variable_empty.sh @@ -36,6 +36,6 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable calculated. │ -│  string   standard   mandatory  │ Default: the values of undocumented │ -│ │ variables. │ +│  string   standard   mandatory  │ Default: the value of the variable │ +│ │ "rougail.dynval1.var". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.adoc b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.adoc index 9787e6228..119c3f427 100644 --- a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.adoc @@ -44,7 +44,12 @@ A variable 1. + **rougail.__val4___dyn.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | A variable 2. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.__val1___dyn.var1" +* the value of the variable "rougail.__val2___dyn.var1" +* the value of the variable "rougail.__val3___dyn.var1" +* the value of the variable "rougail.__val4___dyn.var1" | **rougail.__val1___dyn.var3** + @@ -53,7 +58,12 @@ A variable 2. + **rougail.__val4___dyn.var3** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | A variable 3. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.__val1___dyn.var1" +* the value of the variable "rougail.__val2___dyn.var1" +* the value of the variable "rougail.__val3___dyn.var1" +* the value of the variable "rougail.__val4___dyn.var1" | **rougail.__val1___dyn.var4** + diff --git a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.json b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.json index 1b0039cb7..10337d9a8 100644 --- a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.json +++ b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.json @@ -128,7 +128,12 @@ "var2" ], "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.val1_dyn.var1\"", + "the value of the variable \"rougail.val2_dyn.var1\"", + "the value of the variable \"rougail.val3_dyn.var1\"", + "the value of the variable \"rougail.val4_dyn.var1\"" + ], "properties": [ { "type": "type", @@ -161,7 +166,12 @@ "var3" ], "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.val1_dyn.var1\"", + "the value of the variable \"rougail.val2_dyn.var1\"", + "the value of the variable \"rougail.val3_dyn.var1\"", + "the value of the variable \"rougail.val4_dyn.var1\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.md b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.md index eccc2ac4d..c326859b6 100644 --- a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.md +++ b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.md @@ -15,7 +15,7 @@ This family builds families dynamically. | Variable                                                                                                                | Description                                                                                                             | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | **rougail.*val1*_dyn.var1**
**rougail.*val2*_dyn.var1**
**rougail.*val3*_dyn.var1**
**rougail.*val4*_dyn.var1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable 1.
**Default**: the value of the identifier. | -| **rougail.*val1*_dyn.var2**
**rougail.*val2*_dyn.var2**
**rougail.*val3*_dyn.var2**
**rougail.*val4*_dyn.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable 2.
**Default**: the values of undocumented variables. | -| **rougail.*val1*_dyn.var3**
**rougail.*val2*_dyn.var3**
**rougail.*val3*_dyn.var3**
**rougail.*val4*_dyn.var3**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable 3.
**Default**: the values of undocumented variables. | +| **rougail.*val1*_dyn.var2**
**rougail.*val2*_dyn.var2**
**rougail.*val3*_dyn.var2**
**rougail.*val4*_dyn.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable 2.
**Default**:
- the value of the variable "rougail.*val1*_dyn.var1"
- the value of the variable "rougail.*val2*_dyn.var1"
- the value of the variable "rougail.*val3*_dyn.var1"
- the value of the variable "rougail.*val4*_dyn.var1" | +| **rougail.*val1*_dyn.var3**
**rougail.*val2*_dyn.var3**
**rougail.*val3*_dyn.var3**
**rougail.*val4*_dyn.var3**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable 3.
**Default**:
- the value of the variable "rougail.*val1*_dyn.var1"
- the value of the variable "rougail.*val2*_dyn.var1"
- the value of the variable "rougail.*val3*_dyn.var1"
- the value of the variable "rougail.*val4*_dyn.var1" | | **rougail.*val1*_dyn.var4**
**rougail.*val2*_dyn.var4**
**rougail.*val3*_dyn.var4**
**rougail.*val4*_dyn.var4**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable 4.
**Default**: the value of the variable "rougail.val4_dyn.var1".
**Disabled**: depends on a calculation. | diff --git a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.sh b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.sh index ae12987d0..39939749c 100644 --- a/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.sh +++ b/tests/results/test_namespace/60_5family_dynamic_unknown_suffix_empty.sh @@ -37,16 +37,26 @@ This family builds families dynamically. │  string   standard   mandatory  │ │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var2 │ A variable 2. │ -│ rougail.val2_dyn.var2 │ Default: the values of undocumented │ -│ rougail.val3_dyn.var2 │ variables. │ -│ rougail.val4_dyn.var2 │ │ -│  string   standard   mandatory  │ │ +│ rougail.val2_dyn.var2 │ Default: │ +│ rougail.val3_dyn.var2 │ - the value of the variable │ +│ rougail.val4_dyn.var2 │ "rougail.val1_dyn.var1" │ +│  string   standard   mandatory  │ - the value of the variable │ +│ │ "rougail.val2_dyn.var1" │ +│ │ - the value of the variable │ +│ │ "rougail.val3_dyn.var1" │ +│ │ - the value of the variable │ +│ │ "rougail.val4_dyn.var1" │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var3 │ A variable 3. │ -│ rougail.val2_dyn.var3 │ Default: the values of undocumented │ -│ rougail.val3_dyn.var3 │ variables. │ -│ rougail.val4_dyn.var3 │ │ -│  string   standard   mandatory  │ │ +│ rougail.val2_dyn.var3 │ Default: │ +│ rougail.val3_dyn.var3 │ - the value of the variable │ +│ rougail.val4_dyn.var3 │ "rougail.val1_dyn.var1" │ +│  string   standard   mandatory  │ - the value of the variable │ +│ │ "rougail.val2_dyn.var1" │ +│ │ - the value of the variable │ +│ │ "rougail.val3_dyn.var1" │ +│ │ - the value of the variable │ +│ │ "rougail.val4_dyn.var1" │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var4 │ A variable 4. │ │ rougail.val2_dyn.var4 │ Default: the value of the variable │ diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside.adoc b/tests/results/test_namespace/60_5family_dynamic_variable_outside.adoc index 228e31127..21b7b4472 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside.adoc @@ -42,6 +42,9 @@ A variable inside a dynamic family. + **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | A variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.my_dyn_family___val1__.var" +* the value of the variable "rougail.my_dyn_family___val2__.var" |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside.json index dc4eaeb3f..2f46fb84a 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside.json +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside.json @@ -108,7 +108,10 @@ }, "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.my_dyn_family_val1.var\"", + "the value of the variable \"rougail.my_dyn_family_val2.var\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside.md b/tests/results/test_namespace/60_5family_dynamic_variable_outside.md index d41102648..88a083b06 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside.md +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside.md @@ -18,5 +18,5 @@ This family builds families dynamically. | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**:
- the value of the variable "rougail.my_dyn_family_*val1*.var"
- the value of the variable "rougail.my_dyn_family_*val2*.var" | diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside.sh b/tests/results/test_namespace/60_5family_dynamic_variable_outside.sh index 7d6ebc061..49e749e80 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside.sh +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside.sh @@ -36,6 +36,9 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable. │ -│  string   standard   mandatory    │ Default: the values of undocumented │ -│ unique   multiple  │ variables. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val1.var" │ +│ │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val2.var" │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.adoc b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.adoc index 8818481a8..a8080b490 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.adoc @@ -8,7 +8,10 @@ **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | A variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.my_dyn_family___val1__.var" +* the value of the variable "rougail.my_dyn_family___val2__.var" | **rougail.var** + diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.json index cfdf97b6d..466bad52b 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.json +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.json @@ -19,7 +19,10 @@ "children": { "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.my_dyn_family_val1.var\"", + "the value of the variable \"rougail.my_dyn_family_val2.var\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.md b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.md index dcb026420..6577626e3 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.md +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.md @@ -2,7 +2,7 @@ | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**:
- the value of the variable "rougail.my_dyn_family_*val1*.var"
- the value of the variable "rougail.my_dyn_family_*val2*.var" | | **rougail.var**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A suffix variable.
**Default**:
- val1
- val2 | ## a dynamic family diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.sh b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.sh index 28350abbb..6d42ebf02 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside2.sh +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2.sh @@ -7,8 +7,11 @@ ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable. │ -│  string   standard   mandatory    │ Default: the values of undocumented │ -│ unique   multiple  │ variables. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val1.var" │ +│ │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val2.var" │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.var │ A suffix variable. │ │  string   standard   mandatory    │ Default: │ diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.adoc b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.adoc index 0cda7a997..ea5f967d3 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.adoc @@ -8,7 +8,10 @@ **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | A variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.my_dyn_family___val1__.var" +* the value of the variable "rougail.my_dyn_family___val2__.var" | **rougail.var** + diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.json index 6d43bd36c..edee82b92 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.json +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.json @@ -19,7 +19,10 @@ "children": { "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.my_dyn_family_val1.var\"", + "the value of the variable \"rougail.my_dyn_family_val2.var\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.md b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.md index d8b384b4f..9998e4fe8 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.md +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.md @@ -2,7 +2,7 @@ | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**:
- the value of the variable "rougail.my_dyn_family_*val1*.var"
- the value of the variable "rougail.my_dyn_family_*val2*.var" | | **rougail.var**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `unique` `multiple` | A suffix variable.
**Examples**:
- val1
- val2 | ## a dynamic family diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.sh b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.sh index b54652fcc..0ddd716f6 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.sh +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside2_empty.sh @@ -7,8 +7,11 @@ ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable. │ -│  string   standard   mandatory    │ Default: the values of undocumented │ -│ unique   multiple  │ variables. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val1.var" │ +│ │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val2.var" │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.var │ A suffix variable. │ │  string   standard   unique    │ Examples: │ diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.adoc b/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.adoc index 228e31127..21b7b4472 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.adoc @@ -42,6 +42,9 @@ A variable inside a dynamic family. + **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | A variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.my_dyn_family___val1__.var" +* the value of the variable "rougail.my_dyn_family___val2__.var" |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.json index dc4eaeb3f..2f46fb84a 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.json +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.json @@ -108,7 +108,10 @@ }, "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.my_dyn_family_val1.var\"", + "the value of the variable \"rougail.my_dyn_family_val2.var\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.md b/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.md index d41102648..88a083b06 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.md +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.md @@ -18,5 +18,5 @@ This family builds families dynamically. | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**:
- the value of the variable "rougail.my_dyn_family_*val1*.var"
- the value of the variable "rougail.my_dyn_family_*val2*.var" | diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.sh b/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.sh index 7d6ebc061..49e749e80 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.sh +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_1_0.sh @@ -36,6 +36,9 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable. │ -│  string   standard   mandatory    │ Default: the values of undocumented │ -│ unique   multiple  │ variables. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val1.var" │ +│ │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val2.var" │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.adoc b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.adoc index 09557e221..9196262d2 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.adoc @@ -42,6 +42,9 @@ A variable inside a dynamic family. + **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | A variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.my_dyn_family___val1__.var" +* the value of the variable "rougail.my_dyn_family___val2__.var" |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.json index a13f3bb62..39f96b0fd 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.json +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.json @@ -104,7 +104,10 @@ }, "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.my_dyn_family_val1.var\"", + "the value of the variable \"rougail.my_dyn_family_val2.var\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.md b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.md index f1306429b..ca112fed6 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.md +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.md @@ -18,5 +18,5 @@ This family builds families dynamically. | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.
**Default**:
- the value of the variable "rougail.my_dyn_family_*val1*.var"
- the value of the variable "rougail.my_dyn_family_*val2*.var" | diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.sh b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.sh index 608b41828..b4cb371aa 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.sh +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_empty.sh @@ -36,6 +36,9 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable. │ -│  string   standard   mandatory    │ Default: the values of undocumented │ -│ unique   multiple  │ variables. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val1.var" │ +│ │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val2.var" │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.adoc b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.adoc index bd3ed4985..dd943f369 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.adoc @@ -52,6 +52,9 @@ A variable inside a sub dynamic family. + **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `unique` `multiple` | A variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.my_dyn_family_val1.subdyn___val1__.var" +* the value of the variable "rougail.my_dyn_family_val1.subdyn___val2__.var" |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.json index 8ece85073..732ca4eb7 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.json +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.json @@ -142,7 +142,10 @@ }, "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.my_dyn_family_val1.subdyn_val1.var\"", + "the value of the variable \"rougail.my_dyn_family_val1.subdyn_val2.var\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.md b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.md index 59dc87c96..0b809bc0d 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.md +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.md @@ -26,5 +26,5 @@ This family builds families dynamically. | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `unique` `multiple` | A variable.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `unique` `multiple` | A variable.
**Default**:
- the value of the variable "rougail.my_dyn_family_val1.subdyn_*val1*.var"
- the value of the variable "rougail.my_dyn_family_val1.subdyn_*val2*.var" | diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.sh b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.sh index d10c6684e..d71e84b03 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.sh +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_sub_suffix_empty.sh @@ -52,6 +52,9 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable. │ -│  string   standard   unique    │ Default: the values of undocumented │ -│ multiple  │ variables. │ +│  string   standard   unique    │ Default: │ +│ multiple  │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val1.subdyn_… │ +│ │ - the value of the variable │ +│ │ "rougail.my_dyn_family_val1.subdyn_… │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.adoc b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.adoc index b7e76e0b7..7b32a814f 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.adoc +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.adoc @@ -42,6 +42,6 @@ A variable inside dynamic family. + **rougail.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` | A variable. + -**Default**: the values of undocumented variables. +**Default**: the value of the variable "rougail.dyn_val1.var". |==== diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.json b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.json index 4454e2a07..3ccf942de 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.json +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.json @@ -108,7 +108,7 @@ }, "rougail.var2": { "type": "variable", - "default": "the values of undocumented variables.", + "default": "the value of the variable \"rougail.dyn_val1.var\".", "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.md b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.md index 70be97591..150205c42 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.md +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.md @@ -18,5 +18,5 @@ This family builds families dynamically. | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` | A variable.
**Default**: the values of undocumented variables. | +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` | A variable.
**Default**: the value of the variable "rougail.dyn_val1.var". | diff --git a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.sh b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.sh index c747557b7..9b8a83587 100644 --- a/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.sh +++ b/tests/results/test_namespace/60_5family_dynamic_variable_outside_suffix_empty.sh @@ -36,6 +36,6 @@ This family builds families dynamically. ┃ Variable  ┃ Description  ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ rougail.var2 │ A variable. │ -│  string   standard  │ Default: the values of undocumented │ -│ │ variables. │ +│  string   standard  │ Default: the value of the variable │ +│ │ "rougail.dyn_val1.var". │ └───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_6family_dynamic_inside.adoc b/tests/results/test_namespace/60_6family_dynamic_inside.adoc index 5c0fde739..77b273011 100644 --- a/tests/results/test_namespace/60_6family_dynamic_inside.adoc +++ b/tests/results/test_namespace/60_6family_dynamic_inside.adoc @@ -38,14 +38,20 @@ Value is suffix. + **rougail.__val2___dyn.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | Value is first variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.__val1___dyn.var1" +* the value of the variable "rougail.__val2___dyn.var1" | **rougail.__val1___dyn.var3** + **rougail.__val2___dyn.var3** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | Value is relative first variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.__val1___dyn.var1" +* the value of the variable "rougail.__val2___dyn.var1" | **rougail.__val1___dyn.var4** + diff --git a/tests/results/test_namespace/60_6family_dynamic_inside.json b/tests/results/test_namespace/60_6family_dynamic_inside.json index 54aea6fd4..fb311e3b6 100644 --- a/tests/results/test_namespace/60_6family_dynamic_inside.json +++ b/tests/results/test_namespace/60_6family_dynamic_inside.json @@ -118,7 +118,10 @@ "var2" ], "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.val1_dyn.var1\"", + "the value of the variable \"rougail.val2_dyn.var1\"" + ], "properties": [ { "type": "type", @@ -147,7 +150,10 @@ "var3" ], "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.val1_dyn.var1\"", + "the value of the variable \"rougail.val2_dyn.var1\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_6family_dynamic_inside.md b/tests/results/test_namespace/60_6family_dynamic_inside.md index a568a40c6..fe7f75c0c 100644 --- a/tests/results/test_namespace/60_6family_dynamic_inside.md +++ b/tests/results/test_namespace/60_6family_dynamic_inside.md @@ -15,7 +15,7 @@ This family builds families dynamically. | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | **rougail.*val1*_dyn.var1**
**rougail.*val2*_dyn.var1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is suffix.
**Default**: the value of the identifier. | -| **rougail.*val1*_dyn.var2**
**rougail.*val2*_dyn.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is first variable.
**Default**: the values of undocumented variables. | -| **rougail.*val1*_dyn.var3**
**rougail.*val2*_dyn.var3**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is relative first variable.
**Default**: the values of undocumented variables. | +| **rougail.*val1*_dyn.var2**
**rougail.*val2*_dyn.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is first variable.
**Default**:
- the value of the variable "rougail.*val1*_dyn.var1"
- the value of the variable "rougail.*val2*_dyn.var1" | +| **rougail.*val1*_dyn.var3**
**rougail.*val2*_dyn.var3**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is relative first variable.
**Default**:
- the value of the variable "rougail.*val1*_dyn.var1"
- the value of the variable "rougail.*val2*_dyn.var1" | | **rougail.*val1*_dyn.var4**
**rougail.*val2*_dyn.var4**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is first variable of val1.
**Default**: the value of the variable "rougail.val1_dyn.var1". | diff --git a/tests/results/test_namespace/60_6family_dynamic_inside.sh b/tests/results/test_namespace/60_6family_dynamic_inside.sh index 838411eac..a61eb773e 100644 --- a/tests/results/test_namespace/60_6family_dynamic_inside.sh +++ b/tests/results/test_namespace/60_6family_dynamic_inside.sh @@ -33,12 +33,18 @@ This family builds families dynamically. │  string   standard   mandatory  │ identifier. │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var2 │ Value is first variable. │ -│ rougail.val2_dyn.var2 │ Default: the values of undocumented │ -│  string   standard   mandatory  │ variables. │ +│ rougail.val2_dyn.var2 │ Default: │ +│  string   standard   mandatory  │ - the value of the variable │ +│ │ "rougail.val1_dyn.var1" │ +│ │ - the value of the variable │ +│ │ "rougail.val2_dyn.var1" │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var3 │ Value is relative first variable. │ -│ rougail.val2_dyn.var3 │ Default: the values of undocumented │ -│  string   standard   mandatory  │ variables. │ +│ rougail.val2_dyn.var3 │ Default: │ +│  string   standard   mandatory  │ - the value of the variable │ +│ │ "rougail.val1_dyn.var1" │ +│ │ - the value of the variable │ +│ │ "rougail.val2_dyn.var1" │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var4 │ Value is first variable of val1. │ │ rougail.val2_dyn.var4 │ Default: the value of the variable │ diff --git a/tests/results/test_namespace/60_6family_dynamic_inside_empty.adoc b/tests/results/test_namespace/60_6family_dynamic_inside_empty.adoc index 61ef3b87a..7e5c776da 100644 --- a/tests/results/test_namespace/60_6family_dynamic_inside_empty.adoc +++ b/tests/results/test_namespace/60_6family_dynamic_inside_empty.adoc @@ -38,14 +38,20 @@ Value is suffix. + **rougail.__val2___dyn.var2** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | Value is first variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.__val1___dyn.var1" +* the value of the variable "rougail.__val2___dyn.var1" | **rougail.__val1___dyn.var3** + **rougail.__val2___dyn.var3** + `https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` | Value is relative first variable. + -**Default**: the values of undocumented variables. +**Default**: + +* the value of the variable "rougail.__val1___dyn.var1" +* the value of the variable "rougail.__val2___dyn.var1" | **rougail.__val1___dyn.var4** + diff --git a/tests/results/test_namespace/60_6family_dynamic_inside_empty.json b/tests/results/test_namespace/60_6family_dynamic_inside_empty.json index a7b8ccf68..cc7c50e31 100644 --- a/tests/results/test_namespace/60_6family_dynamic_inside_empty.json +++ b/tests/results/test_namespace/60_6family_dynamic_inside_empty.json @@ -114,7 +114,10 @@ "var2" ], "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.val1_dyn.var1\"", + "the value of the variable \"rougail.val2_dyn.var1\"" + ], "properties": [ { "type": "type", @@ -143,7 +146,10 @@ "var3" ], "type": "variable", - "default": "the values of undocumented variables.", + "default": [ + "the value of the variable \"rougail.val1_dyn.var1\"", + "the value of the variable \"rougail.val2_dyn.var1\"" + ], "properties": [ { "type": "type", diff --git a/tests/results/test_namespace/60_6family_dynamic_inside_empty.md b/tests/results/test_namespace/60_6family_dynamic_inside_empty.md index 3f2ef83e9..19bbe7c79 100644 --- a/tests/results/test_namespace/60_6family_dynamic_inside_empty.md +++ b/tests/results/test_namespace/60_6family_dynamic_inside_empty.md @@ -15,7 +15,7 @@ This family builds families dynamically. | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | **rougail.*val1*_dyn.var1**
**rougail.*val2*_dyn.var1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is suffix.
**Default**: the value of the identifier. | -| **rougail.*val1*_dyn.var2**
**rougail.*val2*_dyn.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is first variable.
**Default**: the values of undocumented variables. | -| **rougail.*val1*_dyn.var3**
**rougail.*val2*_dyn.var3**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is relative first variable.
**Default**: the values of undocumented variables. | +| **rougail.*val1*_dyn.var2**
**rougail.*val2*_dyn.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is first variable.
**Default**:
- the value of the variable "rougail.*val1*_dyn.var1"
- the value of the variable "rougail.*val2*_dyn.var1" | +| **rougail.*val1*_dyn.var3**
**rougail.*val2*_dyn.var3**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is relative first variable.
**Default**:
- the value of the variable "rougail.*val1*_dyn.var1"
- the value of the variable "rougail.*val2*_dyn.var1" | | **rougail.*val1*_dyn.var4**
**rougail.*val2*_dyn.var4**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Value is first variable of val1.
**Default**: the value of the variable "rougail.val1_dyn.var1". | diff --git a/tests/results/test_namespace/60_6family_dynamic_inside_empty.sh b/tests/results/test_namespace/60_6family_dynamic_inside_empty.sh index deb404444..ae8517c56 100644 --- a/tests/results/test_namespace/60_6family_dynamic_inside_empty.sh +++ b/tests/results/test_namespace/60_6family_dynamic_inside_empty.sh @@ -33,12 +33,18 @@ This family builds families dynamically. │  string   standard   mandatory  │ identifier. │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var2 │ Value is first variable. │ -│ rougail.val2_dyn.var2 │ Default: the values of undocumented │ -│  string   standard   mandatory  │ variables. │ +│ rougail.val2_dyn.var2 │ Default: │ +│  string   standard   mandatory  │ - the value of the variable │ +│ │ "rougail.val1_dyn.var1" │ +│ │ - the value of the variable │ +│ │ "rougail.val2_dyn.var1" │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var3 │ Value is relative first variable. │ -│ rougail.val2_dyn.var3 │ Default: the values of undocumented │ -│  string   standard   mandatory  │ variables. │ +│ rougail.val2_dyn.var3 │ Default: │ +│  string   standard   mandatory  │ - the value of the variable │ +│ │ "rougail.val1_dyn.var1" │ +│ │ - the value of the variable │ +│ │ "rougail.val2_dyn.var1" │ ├───────────────────────────────────────┼──────────────────────────────────────┤ │ rougail.val1_dyn.var4 │ Value is first variable of val1. │ │ rougail.val2_dyn.var4 │ Default: the value of the variable │ diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.adoc b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.adoc index f19f0be6c..28be3ed69 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.adoc +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.adoc @@ -40,7 +40,10 @@ A dynamic variable. + This family builds families dynamically. -**Identifiers**: the values of undocumented variables. +**Identifiers**: + +* the value of the variable "rougail.dyn__val1__.var" +* the value of the variable "rougail.dyn__val2__.var" [cols="1a,1a"] |==== diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.json b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.json index 49c17747b..ce5f92531 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.json +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.json @@ -138,7 +138,10 @@ "name": "standard" } ], - "identifiers": "the values of undocumented variables.", + "identifiers": [ + "the value of the variable \"rougail.dynval1.var\"", + "the value of the variable \"rougail.dynval2.var\"" + ], "help": [ "This family builds families dynamically." ] diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.md b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.md index b91ed480b..3fbaec4bd 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.md +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.md @@ -22,7 +22,7 @@ This family builds families dynamically. This family builds families dynamically. -**Identifiers**: the values of undocumented variables. +**Identifiers**:
- the value of the variable "rougail.dyn*val1*.var"
- the value of the variable "rougail.dyn*val2*.var" | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.sh b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.sh index 6d242902b..0f9b853ea 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.sh +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic.sh @@ -44,7 +44,9 @@ This family builds families dynamically. This family builds families dynamically. -Identifiers: the values of undocumented variables. +Identifiers: +- the value of the variable "rougail.dynval1.var" +- the value of the variable "rougail.dynval2.var" ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.adoc b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.adoc index f19f0be6c..28be3ed69 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.adoc +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.adoc @@ -40,7 +40,10 @@ A dynamic variable. + This family builds families dynamically. -**Identifiers**: the values of undocumented variables. +**Identifiers**: + +* the value of the variable "rougail.dyn__val1__.var" +* the value of the variable "rougail.dyn__val2__.var" [cols="1a,1a"] |==== diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.json b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.json index 49c17747b..ce5f92531 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.json +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.json @@ -138,7 +138,10 @@ "name": "standard" } ], - "identifiers": "the values of undocumented variables.", + "identifiers": [ + "the value of the variable \"rougail.dynval1.var\"", + "the value of the variable \"rougail.dynval2.var\"" + ], "help": [ "This family builds families dynamically." ] diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.md b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.md index b91ed480b..3fbaec4bd 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.md +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.md @@ -22,7 +22,7 @@ This family builds families dynamically. This family builds families dynamically. -**Identifiers**: the values of undocumented variables. +**Identifiers**:
- the value of the variable "rougail.dyn*val1*.var"
- the value of the variable "rougail.dyn*val2*.var" | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.sh b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.sh index 6d242902b..0f9b853ea 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.sh +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_1_0.sh @@ -44,7 +44,9 @@ This family builds families dynamically. This family builds families dynamically. -Identifiers: the values of undocumented variables. +Identifiers: +- the value of the variable "rougail.dynval1.var" +- the value of the variable "rougail.dynval2.var" ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.adoc b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.adoc index e731b7509..a62326982 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.adoc +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.adoc @@ -40,7 +40,10 @@ A dynamic variable. + This family builds families dynamically. -**Identifiers**: the values of undocumented variables. +**Identifiers**: + +* the value of the variable "rougail.dyn__val1__.var" +* the value of the variable "rougail.dyn__val2__.var" [cols="1a,1a"] |==== diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.json b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.json index e85ed761a..3b1f3f132 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.json +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.json @@ -134,7 +134,10 @@ "name": "standard" } ], - "identifiers": "the values of undocumented variables.", + "identifiers": [ + "the value of the variable \"rougail.dynval1.var\"", + "the value of the variable \"rougail.dynval2.var\"" + ], "help": [ "This family builds families dynamically." ] diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.md b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.md index a318a1a4e..efba907b4 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.md +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.md @@ -22,7 +22,7 @@ This family builds families dynamically. This family builds families dynamically. -**Identifiers**: the values of undocumented variables. +**Identifiers**:
- the value of the variable "rougail.dyn*val1*.var"
- the value of the variable "rougail.dyn*val2*.var" | Variable                                                                                                                       | Description                                                                                                                    | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.sh b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.sh index b84a4ce5d..e5214052d 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.sh +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty.sh @@ -44,7 +44,9 @@ This family builds families dynamically. This family builds families dynamically. -Identifiers: the values of undocumented variables. +Identifiers: +- the value of the variable "rougail.dynval1.var" +- the value of the variable "rougail.dynval2.var" ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.adoc b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.adoc index fe650dc2c..7a9668957 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.adoc +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.adoc @@ -39,7 +39,10 @@ A dynamic variable. This family builds families dynamically. -**Identifiers**: the values of undocumented variables. +**Identifiers**: + +* the value of the variable "rougail.dyn__val1__.var" +* the value of the variable "rougail.dyn__val2__.var" [cols="1a,1a"] |==== diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.json b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.json index 8674916c2..c622d2f90 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.json +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.json @@ -125,7 +125,10 @@ "name": "standard" } ], - "identifiers": "the values of undocumented variables.", + "identifiers": [ + "the value of the variable \"rougail.dynval1.var\"", + "the value of the variable \"rougail.dynval2.var\"" + ], "help": [ "This family builds families dynamically." ] diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.md b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.md index 0b9c28922..965f0ff35 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.md +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.md @@ -22,7 +22,7 @@ This family builds families dynamically. This family builds families dynamically. -**Identifiers**: the values of undocumented variables. +**Identifiers**:
- the value of the variable "rougail.dyn*val1*.var"
- the value of the variable "rougail.dyn*val2*.var" | Variable                                                                                                           | Description                                                                                                        | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| diff --git a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.sh b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.sh index 49e7ce05b..bfcb10310 100644 --- a/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.sh +++ b/tests/results/test_namespace/60_6family_dynamic_sub_dynamic_empty2.sh @@ -44,7 +44,9 @@ This family builds families dynamically. This family builds families dynamically. -Identifiers: the values of undocumented variables. +Identifiers: +- the value of the variable "rougail.dynval1.var" +- the value of the variable "rougail.dynval2.var" ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ diff --git a/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.adoc b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.adoc new file mode 100644 index 000000000..ce672c28e --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.adoc @@ -0,0 +1,59 @@ +== Variables for "Rougail" + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.var1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A suffix variable. + +**Default**: + +* val1 +* val2 +|==== + +=== rougail.dyn__val1__ or rougail.dyn__val2__ + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var1". + +==== rougail.dyn__val1__.dyn__val1__, rougail.dyn__val1__.dyn__val2__, rougail.dyn__val2__.dyn__val1__ or rougail.dyn__val2__.dyn__val2__ + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var1". + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.dyn__val1__.dyn__val1__.var** + +**rougail.dyn__val1__.dyn__val2__.var** + +**rougail.dyn__val2__.dyn__val1__.var** + +**rougail.dyn__val2__.dyn__val2__.var** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` | +A dynamic variable. +|==== + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.var2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `multiple` | +A variable calculated. + +**Default**: + +* the value of the variable "rougail.dyn__val1__.dynval1.var" +* the value of the variable "rougail.dyn__val2__.dynval1.var" +|==== + diff --git a/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.json b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.json new file mode 100644 index 000000000..1c889b063 --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.json @@ -0,0 +1,180 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ] + }, + "children": { + "rougail.var1": { + "type": "variable", + "default": [ + "val1", + "val2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.var1" + ], + "names": [ + "var1" + ], + "descriptions": [ + "A suffix variable." + ] + }, + "dyn{{ identifier }}": { + "type": "dynamic", + "informations": { + "paths": [ + "rougail.dynval1", + "rougail.dynval2" + ], + "names": [ + "dynval1", + "dynval2" + ], + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "identifiers": "the value of the variable \"rougail.var1\".", + "help": [ + "This family builds families dynamically." + ] + }, + "children": { + "dyn{{ identifier }}": { + "type": "dynamic", + "informations": { + "paths": [ + "rougail.dynval1.dynval1", + "rougail.dynval1.dynval2", + "rougail.dynval2.dynval1", + "rougail.dynval2.dynval2" + ], + "names": [ + "dynval1", + "dynval2", + "dynval1", + "dynval2" + ], + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "identifiers": "the value of the variable \"rougail.var1\".", + "help": [ + "This family builds families dynamically." + ] + }, + "children": { + "rougail.dyn{{ identifier }}.dyn{{ identifier }}.var": { + "paths": [ + "rougail.dynval1.dynval1.var", + "rougail.dynval1.dynval2.var", + "rougail.dynval2.dynval1.var", + "rougail.dynval2.dynval2.var" + ], + "names": [ + "var", + "var", + "var", + "var" + ], + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "basic" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "descriptions": [ + "A dynamic variable." + ] + } + } + } + } + }, + "rougail.var2": { + "type": "variable", + "default": [ + "the value of the variable \"rougail.dynval1.dynval1.var\"", + "the value of the variable \"rougail.dynval2.dynval1.var\"" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.var2" + ], + "names": [ + "var2" + ], + "descriptions": [ + "A variable calculated." + ] + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.md b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.md new file mode 100644 index 000000000..f97d2f8bf --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.md @@ -0,0 +1,30 @@ +# Variables for "Rougail" + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.var1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A suffix variable.
**Default**:
- val1
- val2 | + +## rougail.dyn*val1* or rougail.dyn*val2* + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var1". + +### rougail.dyn*val1*.dyn*val1*, rougail.dyn*val1*.dyn*val2*, rougail.dyn*val2*.dyn*val1* or rougail.dyn*val2*.dyn*val2* + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var1". + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.dyn*val1*.dyn*val1*.var**
**rougail.dyn*val1*.dyn*val2*.var**
**rougail.dyn*val2*.dyn*val1*.var**
**rougail.dyn*val2*.dyn*val2*.var**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A dynamic variable. | + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `multiple` | A variable calculated.
**Default**:
- the value of the variable "rougail.dyn*val1*.dynval1.var"
- the value of the variable "rougail.dyn*val2*.dynval1.var" | + diff --git a/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.sh b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.sh new file mode 100644 index 000000000..34d9679b3 --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi.sh @@ -0,0 +1,61 @@ + + +Variables for "Rougail" + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.var1 │ A suffix variable. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - val1 │ +│ │ - val2 │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + + rougail.dynval1 or rougail.dynval2 + + + basic  + + +This family builds families dynamically. + + +Identifiers: the value of the variable "rougail.var1". + + + + + rougail.dynval1.dynval1, rougail.dynval1.dynval2, rougail.dynval2.dynval1 or +rougail.dynval2.dynval2 + + + basic  + + +This family builds families dynamically. + + +Identifiers: the value of the variable "rougail.var1". + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.dynval1.dynval1.var │ A dynamic variable. │ +│ rougail.dynval1.dynval2.var │ │ +│ rougail.dynval2.dynval1.var │ │ +│ rougail.dynval2.dynval2.var │ │ +│  string   basic   mandatory  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.var2 │ A variable calculated. │ +│  string   standard   mandatory    │ Default: │ +│ multiple  │ - the value of the variable │ +│ │ "rougail.dynval1.dynval1.var" │ +│ │ - the value of the variable │ +│ │ "rougail.dynval2.dynval1.var" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.adoc b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.adoc new file mode 100644 index 000000000..2f1290eb3 --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.adoc @@ -0,0 +1,59 @@ +== Variables for "Rougail" + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.var1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` | +A suffix variable. + +**Default**: + +* val1 +* val2 +|==== + +=== rougail.dyn__val1__ or rougail.dyn__val2__ + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var1". + +==== rougail.dyn__val1__.dyn__val1__, rougail.dyn__val1__.dyn__val2__, rougail.dyn__val2__.dyn__val1__ or rougail.dyn__val2__.dyn__val2__ + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var1". + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.dyn__val1__.dyn__val1__.var** + +**rougail.dyn__val1__.dyn__val2__.var** + +**rougail.dyn__val2__.dyn__val1__.var** + +**rougail.dyn__val2__.dyn__val2__.var** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` | +A dynamic variable. +|==== + +[cols="1a,1a"] +|==== +| Variable | Description +| + +**rougail.var2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `multiple` | +A variable calculated. + +**Default**: + +* the value of the variable "rougail.dynval1.dyn__val1__.var" +* the value of the variable "rougail.dynval1.dyn__val2__.var" +|==== + diff --git a/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.json b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.json new file mode 100644 index 000000000..c1eabe590 --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.json @@ -0,0 +1,180 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "paths": [ + "rougail" + ], + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [ + { + "type": "mode", + "name": "basic" + } + ] + }, + "children": { + "rougail.var1": { + "type": "variable", + "default": [ + "val1", + "val2" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "property", + "name": "unique" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.var1" + ], + "names": [ + "var1" + ], + "descriptions": [ + "A suffix variable." + ] + }, + "dyn{{ identifier }}": { + "type": "dynamic", + "informations": { + "paths": [ + "rougail.dynval1", + "rougail.dynval2" + ], + "names": [ + "dynval1", + "dynval2" + ], + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "identifiers": "the value of the variable \"rougail.var1\".", + "help": [ + "This family builds families dynamically." + ] + }, + "children": { + "dyn{{ identifier }}": { + "type": "dynamic", + "informations": { + "paths": [ + "rougail.dynval1.dynval1", + "rougail.dynval1.dynval2", + "rougail.dynval2.dynval1", + "rougail.dynval2.dynval2" + ], + "names": [ + "dynval1", + "dynval2", + "dynval1", + "dynval2" + ], + "properties": [ + { + "type": "mode", + "name": "basic" + } + ], + "identifiers": "the value of the variable \"rougail.var1\".", + "help": [ + "This family builds families dynamically." + ] + }, + "children": { + "rougail.dyn{{ identifier }}.dyn{{ identifier }}.var": { + "paths": [ + "rougail.dynval1.dynval1.var", + "rougail.dynval1.dynval2.var", + "rougail.dynval2.dynval1.var", + "rougail.dynval2.dynval2.var" + ], + "names": [ + "var", + "var", + "var", + "var" + ], + "type": "variable", + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "basic" + }, + { + "type": "property", + "name": "mandatory" + } + ], + "descriptions": [ + "A dynamic variable." + ] + } + } + } + } + }, + "rougail.var2": { + "type": "variable", + "default": [ + "the value of the variable \"rougail.dynval1.dynval1.var\"", + "the value of the variable \"rougail.dynval1.dynval2.var\"" + ], + "properties": [ + { + "type": "type", + "name": "string" + }, + { + "type": "mode", + "name": "standard" + }, + { + "type": "property", + "name": "mandatory" + }, + { + "type": "multiple", + "name": "multiple" + } + ], + "paths": [ + "rougail.var2" + ], + "names": [ + "var2" + ], + "descriptions": [ + "A variable calculated." + ] + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.md b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.md new file mode 100644 index 000000000..9cecd9492 --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.md @@ -0,0 +1,30 @@ +# Variables for "Rougail" + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.var1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A suffix variable.
**Default**:
- val1
- val2 | + +## rougail.dyn*val1* or rougail.dyn*val2* + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var1". + +### rougail.dyn*val1*.dyn*val1*, rougail.dyn*val1*.dyn*val2*, rougail.dyn*val2*.dyn*val1* or rougail.dyn*val2*.dyn*val2* + +`basic` + +This family builds families dynamically. + +**Identifiers**: the value of the variable "rougail.var1". + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.dyn*val1*.dyn*val1*.var**
**rougail.dyn*val1*.dyn*val2*.var**
**rougail.dyn*val2*.dyn*val1*.var**
**rougail.dyn*val2*.dyn*val2*.var**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A dynamic variable. | + +| Variable                                                                                                                       | Description                                                                                                                    | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.var2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `multiple` | A variable calculated.
**Default**:
- the value of the variable "rougail.dynval1.dyn*val1*.var"
- the value of the variable "rougail.dynval1.dyn*val2*.var" | + diff --git a/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.sh b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.sh new file mode 100644 index 000000000..b2e26fa10 --- /dev/null +++ b/tests/results/test_namespace/60_6family_dynamic_suffix_auto_multi2.sh @@ -0,0 +1,61 @@ + + +Variables for "Rougail" + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.var1 │ A suffix variable. │ +│  string   standard   mandatory    │ Default: │ +│ unique   multiple  │ - val1 │ +│ │ - val2 │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + + + rougail.dynval1 or rougail.dynval2 + + + basic  + + +This family builds families dynamically. + + +Identifiers: the value of the variable "rougail.var1". + + + + + rougail.dynval1.dynval1, rougail.dynval1.dynval2, rougail.dynval2.dynval1 or +rougail.dynval2.dynval2 + + + basic  + + +This family builds families dynamically. + + +Identifiers: the value of the variable "rougail.var1". + + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.dynval1.dynval1.var │ A dynamic variable. │ +│ rougail.dynval1.dynval2.var │ │ +│ rougail.dynval2.dynval1.var │ │ +│ rougail.dynval2.dynval2.var │ │ +│  string   basic   mandatory  │ │ +└───────────────────────────────────────┴──────────────────────────────────────┘ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.var2 │ A variable calculated. │ +│  string   standard   mandatory    │ Default: │ +│ multiple  │ - the value of the variable │ +│ │ "rougail.dynval1.dynval1.var" │ +│ │ - the value of the variable │ +│ │ "rougail.dynval1.dynval2.var" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_multi2.md b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_multi2.md deleted file mode 100644 index 884c65e03..000000000 --- a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_multi2.md +++ /dev/null @@ -1,20 +0,0 @@ -# Example with mandatory variables not filled in - -```yaml ---- -rougail: - condition: - - example - variable: - - example -``` -# Example with all variables modifiable - -```yaml ---- -rougail: - condition: - - example - variable: - - example -``` diff --git a/tests/results/test_namespace_examples/40_0leadership_leader_follower.md b/tests/results/test_namespace_examples/40_0leadership_leader_follower.md new file mode 100644 index 000000000..c049743a1 --- /dev/null +++ b/tests/results/test_namespace_examples/40_0leadership_leader_follower.md @@ -0,0 +1,11 @@ +# Example with all variables modifiable + +```yaml +--- +rougail: + leadership: + - leader: value1 + follower: value1 + - leader: value2 + follower: value2 +``` diff --git a/tests/results/test_namespace_examples/40_9calculation_variable_leader_follower_multi_inside.md b/tests/results/test_namespace_examples/40_9calculation_variable_leader_follower_multi_inside.md new file mode 100644 index 000000000..920b9f50a --- /dev/null +++ b/tests/results/test_namespace_examples/40_9calculation_variable_leader_follower_multi_inside.md @@ -0,0 +1,13 @@ +# Example with all variables modifiable + +```yaml +--- +rougail: + leadership: + - leader: value1 + follower: + - value1 + - leader: value2 + follower: + - value2 +``` diff --git a/tests/results/test_namespace_examples/40_9leadership-calculation-outside-follower-no-mandatory.md b/tests/results/test_namespace_examples/40_9leadership-calculation-outside-follower-no-mandatory.md new file mode 100644 index 000000000..b836be1ca --- /dev/null +++ b/tests/results/test_namespace_examples/40_9leadership-calculation-outside-follower-no-mandatory.md @@ -0,0 +1,14 @@ +# Example with all variables modifiable + +```yaml +--- +rougail: + leader: + - leader: a + follower: example + - leader: b + follower: example + variable: + - + - +``` diff --git a/tests/results/test_namespace_examples/40_9leadership-calculation-variable.md b/tests/results/test_namespace_examples/40_9leadership-calculation-variable.md new file mode 100644 index 000000000..2b013e4b2 --- /dev/null +++ b/tests/results/test_namespace_examples/40_9leadership-calculation-variable.md @@ -0,0 +1,16 @@ +# Example with all variables modifiable + +```yaml +--- +rougail: + calculate: + - value1 + - value2 + leader: + - leader: value1 + follower1: val11 + follower2: val21 + - leader: value2 + follower1: val11 + follower2: val21 +``` diff --git a/tests/results/test_namespace_examples/40_9leadership-calculation-variable_leader_follower.md b/tests/results/test_namespace_examples/40_9leadership-calculation-variable_leader_follower.md new file mode 100644 index 000000000..9ea128f01 --- /dev/null +++ b/tests/results/test_namespace_examples/40_9leadership-calculation-variable_leader_follower.md @@ -0,0 +1,16 @@ +# Example with all variables modifiable + +```yaml +--- +rougail: + leadership_1: + - leader: value1 + follower: example + - leader: value2 + follower: example + leadership_2: + - leader: + follower: val + - leader: + follower: val +``` diff --git a/tests/results/test_namespace_examples/40_9leadership-calculation-variable_leader_follower_not_same.md b/tests/results/test_namespace_examples/40_9leadership-calculation-variable_leader_follower_not_same.md new file mode 100644 index 000000000..4d5c54be2 --- /dev/null +++ b/tests/results/test_namespace_examples/40_9leadership-calculation-variable_leader_follower_not_same.md @@ -0,0 +1,20 @@ +# Example with all variables modifiable + +```yaml +--- +rougail: + leadership_1: + - leader: value1 + follower: example + - leader: value2 + follower: example + leadership_2: + - leader: value1 + follower: + - value1 + - value2 + - leader: value2 + follower: + - value1 + - value2 +``` diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_multi3.md b/tests/results/test_namespace_examples/60_0family_dynamic_upper_char.md similarity index 50% rename from tests/results/test_namespace_examples/04_5disabled_calculation_variable_multi3.md rename to tests/results/test_namespace_examples/60_0family_dynamic_upper_char.md index cd18f0e81..fbc9677c2 100644 --- a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_multi3.md +++ b/tests/results/test_namespace_examples/60_0family_dynamic_upper_char.md @@ -3,17 +3,21 @@ ```yaml --- rougail: - variable: - - example + dynval1: + var: example + dynval2: + var: example ``` # Example with all variables modifiable ```yaml --- rougail: - condition: - - val1 - - val2 - variable: - - example + var: + - Val1 + - VAL2 + dynval1: + var: example + dynval2: + var: example ``` diff --git a/tests/results/test_namespace_examples/60_6family_dynamic_suffix_auto_multi.md b/tests/results/test_namespace_examples/60_6family_dynamic_suffix_auto_multi.md new file mode 100644 index 000000000..9369b8787 --- /dev/null +++ b/tests/results/test_namespace_examples/60_6family_dynamic_suffix_auto_multi.md @@ -0,0 +1,38 @@ +# Example with mandatory variables not filled in + +```yaml +--- +rougail: + dynval1: + dynval1: + var: example + dynval2: + var: example + dynval2: + dynval1: + var: example + dynval2: + var: example +``` +# Example with all variables modifiable + +```yaml +--- +rougail: + var1: + - val1 + - val2 + dynval1: + dynval1: + var: example + dynval2: + var: example + dynval2: + dynval1: + var: example + dynval2: + var: example + var2: + - + - +``` diff --git a/tests/results/test_namespace_examples/60_6family_dynamic_suffix_auto_multi2.md b/tests/results/test_namespace_examples/60_6family_dynamic_suffix_auto_multi2.md new file mode 100644 index 000000000..9369b8787 --- /dev/null +++ b/tests/results/test_namespace_examples/60_6family_dynamic_suffix_auto_multi2.md @@ -0,0 +1,38 @@ +# Example with mandatory variables not filled in + +```yaml +--- +rougail: + dynval1: + dynval1: + var: example + dynval2: + var: example + dynval2: + dynval1: + var: example + dynval2: + var: example +``` +# Example with all variables modifiable + +```yaml +--- +rougail: + var1: + - val1 + - val2 + dynval1: + dynval1: + var: example + dynval2: + var: example + dynval2: + dynval1: + var: example + dynval2: + var: example + var2: + - + - +``` diff --git a/tests/test_load.py b/tests/test_load.py index 4cbbc4c00..db7d3537f 100644 --- a/tests/test_load.py +++ b/tests/test_load.py @@ -14,7 +14,7 @@ excludes = [ ] test_ok = get_structures_list(excludes) -# test_ok = [Path('../rougail-tests/structures/60_0family_dynamic_test')] +# test_ok = [Path('../rougail-tests/structures/60_6family_dynamic_suffix_auto_multi2')] os.environ['COLUMNS'] = '80'