feat: default value for a calculated variable with an unknown optional variable
This commit is contained in:
parent
f5dc501bf9
commit
242b6505ce
120 changed files with 2561 additions and 6 deletions
|
|
@ -21,12 +21,6 @@ My var3. +
|
|||
**Hidden**: var could be hidden.
|
||||
|
|
||||
|
||||
**var4** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` `__hidden__` |
|
||||
My var4. +
|
||||
**Hidden**: when the variable "a.unknown.variable" has the value "value".
|
||||
|
|
||||
|
||||
**var5** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` |
|
||||
My var5. +
|
||||
|
|
|
|||
17
tests/results/test/00_2default_calculated_variable.adoc
Normal file
17
tests/results/test/00_2default_calculated_variable.adoc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[domainname]` `basic` `mandatory` `unique` `multiple` |
|
||||
A first variable. +
|
||||
**Validator**: the domain name can be an IP
|
||||
|
|
||||
|
||||
**var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[domainname]` `standard` `mandatory` `unique` `multiple` |
|
||||
A second variable. +
|
||||
**Default**: the value of the variable "var1".
|
||||
|====
|
||||
|
||||
78
tests/results/test/00_2default_calculated_variable.json
Normal file
78
tests/results/test/00_2default_calculated_variable.json
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"var1": {
|
||||
"type": "variable",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "domainname"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "basic"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"name": "Validator",
|
||||
"values": "the domain name can be an IP"
|
||||
},
|
||||
"paths": [
|
||||
"var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A first variable."
|
||||
]
|
||||
},
|
||||
"var2": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "the value of the variable \"var1\"."
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "domainname"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
5
tests/results/test/00_2default_calculated_variable.md
Normal file
5
tests/results/test/00_2default_calculated_variable.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **var1**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` `unique` `multiple` | A first variable.<br/>**Validator**: the domain name can be an IP |
|
||||
| **var2**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A second variable.<br/>**Default**: the value of the variable "var1". |
|
||||
|
||||
11
tests/results/test/00_2default_calculated_variable.sh
Normal file
11
tests/results/test/00_2default_calculated_variable.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first variable. │
|
||||
│ [1;7m domainname [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mValidator[0m: the domain name can be an │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ IP │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar2[0m │ A second variable. │
|
||||
│ [1;7m domainname [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: the value of the variable │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ "var1". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
30
tests/results/test/00_6ip.adoc
Normal file
30
tests/results/test/00_6ip.adoc
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[IP]` `standard` `mandatory` |
|
||||
An IP. +
|
||||
**Validator**: reserved IP are allowed +
|
||||
**Default**: 1.1.1.1
|
||||
|
|
||||
|
||||
**var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[IP]` `standard` `mandatory` |
|
||||
An IP in CIDR format. +
|
||||
**Validators**:
|
||||
|
||||
* IP must be in CIDR format
|
||||
* reserved IP are allowed
|
||||
|
||||
**Default**: 1.1.1.1/24 +
|
||||
**Example**: 192.168.0.128/25
|
||||
|
|
||||
|
||||
**var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[cidr]` `standard` `mandatory` |
|
||||
An IP in CIDR format with obsolete CIDR type. +
|
||||
**Default**: 1.1.1.1/24
|
||||
|====
|
||||
|
||||
107
tests/results/test/00_6ip.json
Normal file
107
tests/results/test/00_6ip.json
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
{
|
||||
"var1": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.1"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "IP"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"name": "Validator",
|
||||
"values": "reserved IP are allowed"
|
||||
},
|
||||
"paths": [
|
||||
"var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"An IP."
|
||||
]
|
||||
},
|
||||
"var2": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.1/24"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "IP"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"name": "Validators",
|
||||
"values": [
|
||||
"IP must be in CIDR format",
|
||||
"reserved IP are allowed"
|
||||
]
|
||||
},
|
||||
"paths": [
|
||||
"var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"An IP in CIDR format."
|
||||
],
|
||||
"examples": {
|
||||
"name": "Example",
|
||||
"values": "192.168.0.128/25"
|
||||
}
|
||||
},
|
||||
"var3": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.1/24"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "cidr"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"An IP in CIDR format with obsolete CIDR type."
|
||||
]
|
||||
}
|
||||
}
|
||||
6
tests/results/test/00_6ip.md
Normal file
6
tests/results/test/00_6ip.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **var1**<br/>[`IP`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An IP.<br/>**Validator**: reserved IP are allowed<br/>**Default**: 1.1.1.1 |
|
||||
| **var2**<br/>[`IP`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An IP in CIDR format.<br/>**Validators**: <br/>- IP must be in CIDR format<br/>- reserved IP are allowed<br/>**Default**: 1.1.1.1/24<br/>**Example**: 192.168.0.128/25 |
|
||||
| **var3**<br/>[`cidr`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An IP in CIDR format with obsolete CIDR type.<br/>**Default**: 1.1.1.1/24 |
|
||||
|
||||
18
tests/results/test/00_6ip.sh
Normal file
18
tests/results/test/00_6ip.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ An IP. │
|
||||
│ [1;7m IP [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mValidator[0m: reserved IP are allowed │
|
||||
│ │ [1mDefault[0m: 1.1.1.1 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar2[0m │ An IP in CIDR format. │
|
||||
│ [1;7m IP [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mValidators[0m: │
|
||||
│ │ - IP must be in CIDR format │
|
||||
│ │ - reserved IP are allowed │
|
||||
│ │ [1mDefault[0m: 1.1.1.1/24 │
|
||||
│ │ [1mExample[0m: 192.168.0.128/25 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar3[0m │ An IP in CIDR format with obsolete │
|
||||
│ [1;7m cidr [0m [1;7m standard [0m [1;7m mandatory [0m │ CIDR type. │
|
||||
│ │ [1mDefault[0m: 1.1.1.1/24 │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
23
tests/results/test/00_6network.adoc
Normal file
23
tests/results/test/00_6network.adoc
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[network]` `standard` `mandatory` |
|
||||
An network. +
|
||||
**Default**: 1.1.1.0
|
||||
|
|
||||
|
||||
**var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[network]` `standard` `mandatory` |
|
||||
An network in CIDR format. +
|
||||
**Default**: 1.1.1.0/24
|
||||
|
|
||||
|
||||
**var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[network_cidr]` `standard` `mandatory` |
|
||||
An network in CIDR format with obsolete CIDR type. +
|
||||
**Default**: 1.1.1.0/24
|
||||
|====
|
||||
|
||||
92
tests/results/test/00_6network.json
Normal file
92
tests/results/test/00_6network.json
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
{
|
||||
"var1": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.0"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "network"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"An network."
|
||||
]
|
||||
},
|
||||
"var2": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.0/24"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "network"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"An network in CIDR format."
|
||||
]
|
||||
},
|
||||
"var3": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.0/24"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "network_cidr"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"An network in CIDR format with obsolete CIDR type."
|
||||
]
|
||||
}
|
||||
}
|
||||
6
tests/results/test/00_6network.md
Normal file
6
tests/results/test/00_6network.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **var1**<br/>[`network`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An network.<br/>**Default**: 1.1.1.0 |
|
||||
| **var2**<br/>[`network`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An network in CIDR format.<br/>**Default**: 1.1.1.0/24 |
|
||||
| **var3**<br/>[`network_cidr`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An network in CIDR format with obsolete CIDR type.<br/>**Default**: 1.1.1.0/24 |
|
||||
|
||||
13
tests/results/test/00_6network.sh
Normal file
13
tests/results/test/00_6network.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ An network. │
|
||||
│ [1;7m network [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: 1.1.1.0 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar2[0m │ An network in CIDR format. │
|
||||
│ [1;7m network [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: 1.1.1.0/24 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar3[0m │ An network in CIDR format with │
|
||||
│ [1;7m network_cidr [0m [1;7m standard [0m [1;7m mandatory [0m │ obsolete CIDR type. │
|
||||
│ │ [1mDefault[0m: 1.1.1.0/24 │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**my_variable** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||
My_variable. +
|
||||
**Default**: val1
|
||||
|
|
||||
|
||||
**my_calculated_variable** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
||||
My_calculated_variable. +
|
||||
**Default**: the value of the variable "my_variable".
|
||||
|====
|
||||
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"my_variable": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "val1"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"my_variable"
|
||||
],
|
||||
"names": [
|
||||
"my_variable"
|
||||
]
|
||||
},
|
||||
"my_calculated_variable": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": [
|
||||
"the value of the variable \"my_variable\"."
|
||||
]
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"my_calculated_variable"
|
||||
],
|
||||
"names": [
|
||||
"my_calculated_variable"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **my_variable**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | My_variable.<br/>**Default**: val1 |
|
||||
| **my_calculated_variable**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | My_calculated_variable.<br/>**Default**: the value of the variable "my_variable". |
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mmy_variable[0m │ My_variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: val1 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mmy_calculated_variable[0m │ My_calculated_variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: the value of the variable │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ "my_variable". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
15
tests/results/test/01_9choice_variable_optional.adoc
Normal file
15
tests/results/test/01_9choice_variable_optional.adoc
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**variable** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A variable. +
|
||||
**Choices**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c **← (default)**
|
||||
|====
|
||||
|
||||
41
tests/results/test/01_9choice_variable_optional.json
Normal file
41
tests/results/test/01_9choice_variable_optional.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"variable": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "c"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"default_is_already_set": true,
|
||||
"choices": {
|
||||
"name": "Choices",
|
||||
"values": [
|
||||
"a",
|
||||
"b",
|
||||
"c ← (default)"
|
||||
]
|
||||
},
|
||||
"paths": [
|
||||
"variable"
|
||||
],
|
||||
"names": [
|
||||
"variable"
|
||||
],
|
||||
"descriptions": [
|
||||
"A variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
4
tests/results/test/01_9choice_variable_optional.md
Normal file
4
tests/results/test/01_9choice_variable_optional.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **variable**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable.<br/>**Choices**: <br/>- a<br/>- b<br/>- c **← (default)** |
|
||||
|
||||
9
tests/results/test/01_9choice_variable_optional.sh
Normal file
9
tests/results/test/01_9choice_variable_optional.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvariable[0m │ A variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: │
|
||||
│ │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c [1m← (default)[0m │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**condition** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` |
|
||||
A condition. +
|
||||
**Default**: false
|
||||
|
|
||||
|
||||
**var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `__hidden__` |
|
||||
A second variable. +
|
||||
**Hidden**: when the variable "condition" has the value "true".
|
||||
|
|
||||
|
||||
**var4** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `__hidden__` |
|
||||
A forth variable. +
|
||||
**Hidden**: when the variable "condition" has the value "true".
|
||||
|====
|
||||
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
"condition": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": false
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"condition"
|
||||
],
|
||||
"names": [
|
||||
"condition"
|
||||
],
|
||||
"descriptions": [
|
||||
"A condition."
|
||||
]
|
||||
},
|
||||
"var3": {
|
||||
"type": "variable",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "hidden",
|
||||
"annotation": "when the variable \"condition\" has the value \"true\"."
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
},
|
||||
"var4": {
|
||||
"type": "variable",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "hidden",
|
||||
"annotation": "when the variable \"condition\" has the value \"true\"."
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var4"
|
||||
],
|
||||
"names": [
|
||||
"var4"
|
||||
],
|
||||
"descriptions": [
|
||||
"A forth variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **condition**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: false |
|
||||
| **var3**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` *`hidden`* | A second variable.<br/>**Hidden**: when the variable "condition" has the value "true". |
|
||||
| **var4**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` *`hidden`* | A forth variable.<br/>**Hidden**: when the variable "condition" has the value "true". |
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mcondition[0m │ A condition. │
|
||||
│ [1;7m boolean [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: false │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar3[0m │ A second variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;3;7m hidden [0m │ [1mHidden[0m: when the variable │
|
||||
│ │ "condition" has the value "true". │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar4[0m │ A forth variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;3;7m hidden [0m │ [1mHidden[0m: when the variable │
|
||||
│ │ "condition" has the value "true". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
27
tests/results/test/40_2leadership_calculation_index.adoc
Normal file
27
tests/results/test/40_2leadership_calculation_index.adoc
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
== 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**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**leader.follower1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[integer]` `standard` `mandatory` |
|
||||
A follower. +
|
||||
**Default**: the value of the index.
|
||||
|====
|
||||
|
||||
97
tests/results/test/40_2leadership_calculation_index.json
Normal file
97
tests/results/test/40_2leadership_calculation_index.json
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
"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": {
|
||||
"name": "Default",
|
||||
"values": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"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": {
|
||||
"name": "Default",
|
||||
"values": "the value of the index."
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "integer"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"leader.follower1"
|
||||
],
|
||||
"names": [
|
||||
"follower1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A follower."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
tests/results/test/40_2leadership_calculation_index.md
Normal file
11
tests/results/test/40_2leadership_calculation_index.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# a leadership
|
||||
|
||||
`standard`
|
||||
|
||||
This family contains lists of variable blocks.
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **leader.leader**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.<br/>**Default**: <br/>- a<br/>- b<br/>- c |
|
||||
| **leader.follower1**<br/>[`integer`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.<br/>**Default**: the value of the index. |
|
||||
|
||||
23
tests/results/test/40_2leadership_calculation_index.sh
Normal file
23
tests/results/test/40_2leadership_calculation_index.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
|
||||
[1;4;96ma leadership[0m
|
||||
|
||||
|
||||
[1;7m standard [0m
|
||||
|
||||
|
||||
This family contains lists of variable blocks.
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mleader.leader[0m │ A leader. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mleader.follower1[0m │ A follower. │
|
||||
│ [1;7m integer [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: the value of the index. │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
27
tests/results/test/40_2leadership_calculation_index_2.adoc
Normal file
27
tests/results/test/40_2leadership_calculation_index_2.adoc
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
== 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**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**leader.follower1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[integer]` `standard` `mandatory` |
|
||||
A follower. +
|
||||
**Default**: the value of the index.
|
||||
|====
|
||||
|
||||
97
tests/results/test/40_2leadership_calculation_index_2.json
Normal file
97
tests/results/test/40_2leadership_calculation_index_2.json
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
"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": {
|
||||
"name": "Default",
|
||||
"values": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"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": {
|
||||
"name": "Default",
|
||||
"values": "the value of the index."
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "integer"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"leader.follower1"
|
||||
],
|
||||
"names": [
|
||||
"follower1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A follower."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
tests/results/test/40_2leadership_calculation_index_2.md
Normal file
11
tests/results/test/40_2leadership_calculation_index_2.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# a leadership
|
||||
|
||||
`standard`
|
||||
|
||||
This family contains lists of variable blocks.
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **leader.leader**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.<br/>**Default**: <br/>- a<br/>- b<br/>- c |
|
||||
| **leader.follower1**<br/>[`integer`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.<br/>**Default**: the value of the index. |
|
||||
|
||||
23
tests/results/test/40_2leadership_calculation_index_2.sh
Normal file
23
tests/results/test/40_2leadership_calculation_index_2.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
|
||||
[1;4;96ma leadership[0m
|
||||
|
||||
|
||||
[1;7m standard [0m
|
||||
|
||||
|
||||
This family contains lists of variable blocks.
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mleader.leader[0m │ A leader. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mleader.follower1[0m │ A follower. │
|
||||
│ [1;7m integer [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: the value of the index. │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
23
tests/results/test/60_0family_dynamic_variable_optional.adoc
Normal file
23
tests/results/test/60_0family_dynamic_variable_optional.adoc
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
== a dynamic family
|
||||
|
||||
`standard`
|
||||
|
||||
This family builds families dynamically.
|
||||
|
||||
**Identifiers**:
|
||||
|
||||
* a
|
||||
* b
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**dyn__a__.var** +
|
||||
**dyn__b__.var** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||
A variable inside dynamic family. +
|
||||
**Default**: val
|
||||
|====
|
||||
|
||||
63
tests/results/test/60_0family_dynamic_variable_optional.json
Normal file
63
tests/results/test/60_0family_dynamic_variable_optional.json
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"dyn{{ identifier }}": {
|
||||
"type": "dynamic",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"dyna",
|
||||
"dynb"
|
||||
],
|
||||
"names": [
|
||||
"dyna",
|
||||
"dynb"
|
||||
],
|
||||
"description": "a dynamic family",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
],
|
||||
"identifiers": [
|
||||
"a",
|
||||
"b"
|
||||
],
|
||||
"help": [
|
||||
"This family builds families dynamically."
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"dyn{{ identifier }}.var": {
|
||||
"paths": [
|
||||
"dyna.var",
|
||||
"dynb.var"
|
||||
],
|
||||
"names": [
|
||||
"var",
|
||||
"var"
|
||||
],
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "val"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"descriptions": [
|
||||
"A variable inside dynamic family."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
tests/results/test/60_0family_dynamic_variable_optional.md
Normal file
12
tests/results/test/60_0family_dynamic_variable_optional.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# a dynamic family
|
||||
|
||||
`standard`
|
||||
|
||||
This family builds families dynamically.
|
||||
|
||||
**Identifiers**: <br/>- a<br/>- b
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **dyn*a*.var**<br/>**dyn*b*.var**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable inside dynamic family.<br/>**Default**: val |
|
||||
|
||||
23
tests/results/test/60_0family_dynamic_variable_optional.sh
Normal file
23
tests/results/test/60_0family_dynamic_variable_optional.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
|
||||
[1;4;96ma dynamic family[0m
|
||||
|
||||
|
||||
[1;7m standard [0m
|
||||
|
||||
|
||||
This family builds families dynamically.
|
||||
|
||||
|
||||
[1mIdentifiers[0m:
|
||||
- a
|
||||
- b
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mdyn[0m[1;3ma[0m[1m.var[0m │ A variable inside dynamic family. │
|
||||
│ [1mdyn[0m[1;3mb[0m[1m.var[0m │ [1mDefault[0m: val │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
1
tests/results/test/warnings_00_6ip
Normal file
1
tests/results/test/warnings_00_6ip
Normal file
|
|
@ -0,0 +1 @@
|
|||
["the variable \"var3\" has a depreciated type \"cidr\", please use type \"ip\" with attribute cidr=True instead in \"../../rougail-tests/structures/00_6ip/rougail/00-base.yml\""]
|
||||
1
tests/results/test/warnings_00_6network
Normal file
1
tests/results/test/warnings_00_6network
Normal file
|
|
@ -0,0 +1 @@
|
|||
["the variable \"var3\" has a depreciated type \"network_cidr\", please use type \"network\" with attribute cidr=True instead in \"../../rougail-tests/structures/00_6network/rougail/00-base.yml\""]
|
||||
|
|
@ -0,0 +1 @@
|
|||
["No attribute \"description\" for \"my_variable\" in \"../../rougail-tests/structures/00_9default_calculation_multi_optional_default/rougail/00-base.yml\"", "No attribute \"description\" for \"my_calculated_variable\" in \"../../rougail-tests/structures/00_9default_calculation_multi_optional_default/rougail/00-base.yml\""]
|
||||
1
tests/results/test/warnings_01_9choice_variable_optional
Normal file
1
tests/results/test/warnings_01_9choice_variable_optional
Normal file
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Example with mandatory variables not filled in
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1:
|
||||
- example.net
|
||||
```
|
||||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1:
|
||||
- example.net
|
||||
var2:
|
||||
- example.net
|
||||
```
|
||||
8
tests/results/test_examples/00_6ip.md
Normal file
8
tests/results/test_examples/00_6ip.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1: 1.1.1.1
|
||||
var2: 192.168.0.128/25
|
||||
var3: 1.1.1.1/24
|
||||
```
|
||||
8
tests/results/test_examples/00_6network.md
Normal file
8
tests/results/test_examples/00_6network.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1: 1.1.1.0
|
||||
var2: 1.1.1.0/24
|
||||
var3: 1.1.1.0/24
|
||||
```
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
my_variable: val1
|
||||
my_calculated_variable:
|
||||
- val1
|
||||
- value
|
||||
```
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
variable: c
|
||||
```
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
condition: false
|
||||
var3: example
|
||||
var4: example
|
||||
```
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
leader:
|
||||
- leader: a
|
||||
follower1: 0
|
||||
- leader: b
|
||||
follower1: 1
|
||||
- leader: c
|
||||
follower1: 2
|
||||
```
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
leader:
|
||||
- leader: a
|
||||
follower1: 0
|
||||
- leader: b
|
||||
follower1: 1
|
||||
- leader: c
|
||||
follower1: 2
|
||||
```
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
dyna:
|
||||
var: val
|
||||
dynb:
|
||||
var: val
|
||||
```
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
1
tests/results/test_examples/warnings_00_6ip
Normal file
1
tests/results/test_examples/warnings_00_6ip
Normal file
|
|
@ -0,0 +1 @@
|
|||
["the variable \"var3\" has a depreciated type \"cidr\", please use type \"ip\" with attribute cidr=True instead in \"../../rougail-tests/structures/00_6ip/rougail/00-base.yml\""]
|
||||
1
tests/results/test_examples/warnings_00_6network
Normal file
1
tests/results/test_examples/warnings_00_6network
Normal file
|
|
@ -0,0 +1 @@
|
|||
["the variable \"var3\" has a depreciated type \"network_cidr\", please use type \"network\" with attribute cidr=True instead in \"../../rougail-tests/structures/00_6network/rougail/00-base.yml\""]
|
||||
|
|
@ -0,0 +1 @@
|
|||
["No attribute \"description\" for \"my_variable\" in \"../../rougail-tests/structures/00_9default_calculation_multi_optional_default/rougail/00-base.yml\"", "No attribute \"description\" for \"my_calculated_variable\" in \"../../rougail-tests/structures/00_9default_calculation_multi_optional_default/rougail/00-base.yml\""]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[domainname]` `basic` `mandatory` `unique` `multiple` |
|
||||
A first variable. +
|
||||
**Validator**: the domain name can be an IP
|
||||
|
|
||||
|
||||
**rougail.var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[domainname]` `standard` `mandatory` `unique` `multiple` |
|
||||
A second variable. +
|
||||
**Default**: the value of the variable "rougail.var1".
|
||||
|====
|
||||
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.var1": {
|
||||
"type": "variable",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "domainname"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "basic"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"name": "Validator",
|
||||
"values": "the domain name can be an IP"
|
||||
},
|
||||
"paths": [
|
||||
"rougail.var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A first variable."
|
||||
]
|
||||
},
|
||||
"rougail.var2": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "the value of the variable \"rougail.var1\"."
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "domainname"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.var1**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` `unique` `multiple` | A first variable.<br/>**Validator**: the domain name can be an IP |
|
||||
| **rougail.var2**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A second variable.<br/>**Default**: the value of the variable "rougail.var1". |
|
||||
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.var1[0m │ A first variable. │
|
||||
│ [1;7m domainname [0m [1;7m basic [0m [1;7m mandatory [0m [1;7m [0m │ [1mValidator[0m: the domain name can be an │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ IP │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var2[0m │ A second variable. │
|
||||
│ [1;7m domainname [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: the value of the variable │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ "rougail.var1". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
32
tests/results/test_namespace/00_6ip.adoc
Normal file
32
tests/results/test_namespace/00_6ip.adoc
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[IP]` `standard` `mandatory` |
|
||||
An IP. +
|
||||
**Validator**: reserved IP are allowed +
|
||||
**Default**: 1.1.1.1
|
||||
|
|
||||
|
||||
**rougail.var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[IP]` `standard` `mandatory` |
|
||||
An IP in CIDR format. +
|
||||
**Validators**:
|
||||
|
||||
* IP must be in CIDR format
|
||||
* reserved IP are allowed
|
||||
|
||||
**Default**: 1.1.1.1/24 +
|
||||
**Example**: 192.168.0.128/25
|
||||
|
|
||||
|
||||
**rougail.var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[cidr]` `standard` `mandatory` |
|
||||
An IP in CIDR format with obsolete CIDR type. +
|
||||
**Default**: 1.1.1.1/24
|
||||
|====
|
||||
|
||||
127
tests/results/test_namespace/00_6ip.json
Normal file
127
tests/results/test_namespace/00_6ip.json
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.var1": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.1"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "IP"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"name": "Validator",
|
||||
"values": "reserved IP are allowed"
|
||||
},
|
||||
"paths": [
|
||||
"rougail.var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"An IP."
|
||||
]
|
||||
},
|
||||
"rougail.var2": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.1/24"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "IP"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"validators": {
|
||||
"name": "Validators",
|
||||
"values": [
|
||||
"IP must be in CIDR format",
|
||||
"reserved IP are allowed"
|
||||
]
|
||||
},
|
||||
"paths": [
|
||||
"rougail.var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"An IP in CIDR format."
|
||||
],
|
||||
"examples": {
|
||||
"name": "Example",
|
||||
"values": "192.168.0.128/25"
|
||||
}
|
||||
},
|
||||
"rougail.var3": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.1/24"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "cidr"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"An IP in CIDR format with obsolete CIDR type."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8
tests/results/test_namespace/00_6ip.md
Normal file
8
tests/results/test_namespace/00_6ip.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.var1**<br/>[`IP`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An IP.<br/>**Validator**: reserved IP are allowed<br/>**Default**: 1.1.1.1 |
|
||||
| **rougail.var2**<br/>[`IP`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An IP in CIDR format.<br/>**Validators**: <br/>- IP must be in CIDR format<br/>- reserved IP are allowed<br/>**Default**: 1.1.1.1/24<br/>**Example**: 192.168.0.128/25 |
|
||||
| **rougail.var3**<br/>[`cidr`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An IP in CIDR format with obsolete CIDR type.<br/>**Default**: 1.1.1.1/24 |
|
||||
|
||||
23
tests/results/test_namespace/00_6ip.sh
Normal file
23
tests/results/test_namespace/00_6ip.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.var1[0m │ An IP. │
|
||||
│ [1;7m IP [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mValidator[0m: reserved IP are allowed │
|
||||
│ │ [1mDefault[0m: 1.1.1.1 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var2[0m │ An IP in CIDR format. │
|
||||
│ [1;7m IP [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mValidators[0m: │
|
||||
│ │ - IP must be in CIDR format │
|
||||
│ │ - reserved IP are allowed │
|
||||
│ │ [1mDefault[0m: 1.1.1.1/24 │
|
||||
│ │ [1mExample[0m: 192.168.0.128/25 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var3[0m │ An IP in CIDR format with obsolete │
|
||||
│ [1;7m cidr [0m [1;7m standard [0m [1;7m mandatory [0m │ CIDR type. │
|
||||
│ │ [1mDefault[0m: 1.1.1.1/24 │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
25
tests/results/test_namespace/00_6network.adoc
Normal file
25
tests/results/test_namespace/00_6network.adoc
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[network]` `standard` `mandatory` |
|
||||
An network. +
|
||||
**Default**: 1.1.1.0
|
||||
|
|
||||
|
||||
**rougail.var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[network]` `standard` `mandatory` |
|
||||
An network in CIDR format. +
|
||||
**Default**: 1.1.1.0/24
|
||||
|
|
||||
|
||||
**rougail.var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[network_cidr]` `standard` `mandatory` |
|
||||
An network in CIDR format with obsolete CIDR type. +
|
||||
**Default**: 1.1.1.0/24
|
||||
|====
|
||||
|
||||
112
tests/results/test_namespace/00_6network.json
Normal file
112
tests/results/test_namespace/00_6network.json
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.var1": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.0"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "network"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"An network."
|
||||
]
|
||||
},
|
||||
"rougail.var2": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.0/24"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "network"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"An network in CIDR format."
|
||||
]
|
||||
},
|
||||
"rougail.var3": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "1.1.1.0/24"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "network_cidr"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"An network in CIDR format with obsolete CIDR type."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8
tests/results/test_namespace/00_6network.md
Normal file
8
tests/results/test_namespace/00_6network.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.var1**<br/>[`network`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An network.<br/>**Default**: 1.1.1.0 |
|
||||
| **rougail.var2**<br/>[`network`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An network in CIDR format.<br/>**Default**: 1.1.1.0/24 |
|
||||
| **rougail.var3**<br/>[`network_cidr`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | An network in CIDR format with obsolete CIDR type.<br/>**Default**: 1.1.1.0/24 |
|
||||
|
||||
18
tests/results/test_namespace/00_6network.sh
Normal file
18
tests/results/test_namespace/00_6network.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.var1[0m │ An network. │
|
||||
│ [1;7m network [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: 1.1.1.0 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var2[0m │ An network in CIDR format. │
|
||||
│ [1;7m network [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: 1.1.1.0/24 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var3[0m │ An network in CIDR format with │
|
||||
│ [1;7m network_cidr [0m [1;7m standard [0m [1;7m mandatory [0m │ obsolete CIDR type. │
|
||||
│ │ [1mDefault[0m: 1.1.1.0/24 │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.my_variable** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||
My_variable. +
|
||||
**Default**: val1
|
||||
|
|
||||
|
||||
**rougail.my_calculated_variable** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
||||
My_calculated_variable. +
|
||||
**Default**: the value of the variable "rougail.my_variable".
|
||||
|====
|
||||
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.my_variable": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "val1"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.my_variable"
|
||||
],
|
||||
"names": [
|
||||
"my_variable"
|
||||
]
|
||||
},
|
||||
"rougail.my_calculated_variable": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": [
|
||||
"the value of the variable \"rougail.my_variable\"."
|
||||
]
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.my_calculated_variable"
|
||||
],
|
||||
"names": [
|
||||
"my_calculated_variable"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.my_variable**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | My_variable.<br/>**Default**: val1 |
|
||||
| **rougail.my_calculated_variable**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | My_calculated_variable.<br/>**Default**: the value of the variable "rougail.my_variable". |
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.my_variable[0m │ My_variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: val1 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.my_calculated_variable[0m │ My_calculated_variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: the value of the variable │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ "rougail.my_variable". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.variable** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A variable. +
|
||||
**Choices**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c **← (default)**
|
||||
|====
|
||||
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.variable": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "c"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"default_is_already_set": true,
|
||||
"choices": {
|
||||
"name": "Choices",
|
||||
"values": [
|
||||
"a",
|
||||
"b",
|
||||
"c ← (default)"
|
||||
]
|
||||
},
|
||||
"paths": [
|
||||
"rougail.variable"
|
||||
],
|
||||
"names": [
|
||||
"variable"
|
||||
],
|
||||
"descriptions": [
|
||||
"A variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.variable**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable.<br/>**Choices**: <br/>- a<br/>- b<br/>- c **← (default)** |
|
||||
|
||||
14
tests/results/test_namespace/01_9choice_variable_optional.sh
Normal file
14
tests/results/test_namespace/01_9choice_variable_optional.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.variable[0m │ A variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: │
|
||||
│ │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c [1m← (default)[0m │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.condition** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` |
|
||||
A condition. +
|
||||
**Default**: false
|
||||
|
|
||||
|
||||
**rougail.var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `__hidden__` |
|
||||
A second variable. +
|
||||
**Hidden**: when the variable "rougail.condition" has the value "true".
|
||||
|
|
||||
|
||||
**rougail.var4** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `__hidden__` |
|
||||
A forth variable. +
|
||||
**Hidden**: when the variable "rougail.condition" has the value "true".
|
||||
|====
|
||||
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.condition": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": false
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.condition"
|
||||
],
|
||||
"names": [
|
||||
"condition"
|
||||
],
|
||||
"descriptions": [
|
||||
"A condition."
|
||||
]
|
||||
},
|
||||
"rougail.var3": {
|
||||
"type": "variable",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "hidden",
|
||||
"annotation": "when the variable \"rougail.condition\" has the value \"true\"."
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
},
|
||||
"rougail.var4": {
|
||||
"type": "variable",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "hidden",
|
||||
"annotation": "when the variable \"rougail.condition\" has the value \"true\"."
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var4"
|
||||
],
|
||||
"names": [
|
||||
"var4"
|
||||
],
|
||||
"descriptions": [
|
||||
"A forth variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.condition**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.<br/>**Default**: false |
|
||||
| **rougail.var3**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` *`hidden`* | A second variable.<br/>**Hidden**: when the variable "rougail.condition" has the value "true". |
|
||||
| **rougail.var4**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` *`hidden`* | A forth variable.<br/>**Hidden**: when the variable "rougail.condition" has the value "true". |
|
||||
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.condition[0m │ A condition. │
|
||||
│ [1;7m boolean [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: false │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var3[0m │ A second variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;3;7m hidden [0m │ [1mHidden[0m: when the variable │
|
||||
│ │ "rougail.condition" has the value │
|
||||
│ │ "true". │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var4[0m │ A forth variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;3;7m hidden [0m │ [1mHidden[0m: when the variable │
|
||||
│ │ "rougail.condition" has the value │
|
||||
│ │ "true". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
=== 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**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**rougail.leader.follower1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[integer]` `standard` `mandatory` |
|
||||
A follower. +
|
||||
**Default**: the value of the index.
|
||||
|====
|
||||
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
{
|
||||
"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"
|
||||
],
|
||||
"description": "a leadership",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
],
|
||||
"help": [
|
||||
"This family contains lists of variable blocks."
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.leader.leader": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"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": {
|
||||
"name": "Default",
|
||||
"values": "the value of the index."
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "integer"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.leader.follower1"
|
||||
],
|
||||
"names": [
|
||||
"follower1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A follower."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
## a leadership
|
||||
|
||||
`standard`
|
||||
|
||||
This family contains lists of variable blocks.
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.leader.leader**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A leader.<br/>**Default**: <br/>- a<br/>- b<br/>- c |
|
||||
| **rougail.leader.follower1**<br/>[`integer`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A follower.<br/>**Default**: the value of the index. |
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
|
||||
|
||||
[1;4;92ma leadership[0m
|
||||
|
||||
|
||||
[1;7m standard [0m
|
||||
|
||||
|
||||
This family contains lists of variable blocks.
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.leader.leader[0m │ A leader. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.leader.follower1[0m │ A follower. │
|
||||
│ [1;7m integer [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: the value of the index. │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
=== a dynamic family
|
||||
|
||||
`standard`
|
||||
|
||||
This family builds families dynamically.
|
||||
|
||||
**Identifiers**:
|
||||
|
||||
* a
|
||||
* b
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.dyn__a__.var** +
|
||||
**rougail.dyn__b__.var** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||
A variable inside dynamic family. +
|
||||
**Default**: val
|
||||
|====
|
||||
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"dyn{{ identifier }}": {
|
||||
"type": "dynamic",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail.dyna",
|
||||
"rougail.dynb"
|
||||
],
|
||||
"names": [
|
||||
"dyna",
|
||||
"dynb"
|
||||
],
|
||||
"description": "a dynamic family",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
],
|
||||
"identifiers": [
|
||||
"a",
|
||||
"b"
|
||||
],
|
||||
"help": [
|
||||
"This family builds families dynamically."
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.dyn{{ identifier }}.var": {
|
||||
"paths": [
|
||||
"rougail.dyna.var",
|
||||
"rougail.dynb.var"
|
||||
],
|
||||
"names": [
|
||||
"var",
|
||||
"var"
|
||||
],
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": "val"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"descriptions": [
|
||||
"A variable inside dynamic family."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
## a dynamic family
|
||||
|
||||
`standard`
|
||||
|
||||
This family builds families dynamically.
|
||||
|
||||
**Identifiers**: <br/>- a<br/>- b
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.dyn*a*.var**<br/>**rougail.dyn*b*.var**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable inside dynamic family.<br/>**Default**: val |
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
|
||||
|
||||
[1;4;92ma dynamic family[0m
|
||||
|
||||
|
||||
[1;7m standard [0m
|
||||
|
||||
|
||||
This family builds families dynamically.
|
||||
|
||||
|
||||
[1mIdentifiers[0m:
|
||||
- a
|
||||
- b
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.dyn[0m[1;3ma[0m[1m.var[0m │ A variable inside dynamic family. │
|
||||
│ [1mrougail.dyn[0m[1;3mb[0m[1m.var[0m │ [1mDefault[0m: val │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
1
tests/results/test_namespace/warnings_00_6ip
Normal file
1
tests/results/test_namespace/warnings_00_6ip
Normal file
|
|
@ -0,0 +1 @@
|
|||
["the variable \"rougail.var3\" has a depreciated type \"cidr\", please use type \"ip\" with attribute cidr=True instead in \"../../rougail-tests/structures/00_6ip/rougail/00-base.yml\""]
|
||||
1
tests/results/test_namespace/warnings_00_6network
Normal file
1
tests/results/test_namespace/warnings_00_6network
Normal file
|
|
@ -0,0 +1 @@
|
|||
["the variable \"rougail.var3\" has a depreciated type \"network_cidr\", please use type \"network\" with attribute cidr=True instead in \"../../rougail-tests/structures/00_6network/rougail/00-base.yml\""]
|
||||
|
|
@ -0,0 +1 @@
|
|||
["No attribute \"description\" for \"rougail.my_variable\" in \"../../rougail-tests/structures/00_9default_calculation_multi_optional_default/rougail/00-base.yml\"", "No attribute \"description\" for \"rougail.my_calculated_variable\" in \"../../rougail-tests/structures/00_9default_calculation_multi_optional_default/rougail/00-base.yml\""]
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue