rougail-output-doc/tests/docs/base/01_9choice_variable_multi.adoc

56 lines
1.5 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== dictionaries/rougail/00-base.yml
[,yaml]
----
version: '1.1'
variable1: # a first variable
- a
- b
- c
variable2:
description: a second variable
choices:
type: variable
variable: _.variable1
----
== Variables for "rougail"
[cols="105a,105a",options="header"]
|====
| Variable | Description
|
**rougail.variable1** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
A first variable. +
**Default**:
* a
* b
* c
|
**rougail.variable2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `basic` `mandatory` |
A second variable. +
**Choices**: the value of the variable "rougail.variable1".
|====
== Example with mandatory variables not filled in
[,yaml]
----
rougail:
variable2: a_choice
----
== Example with all variables modifiable
[,yaml]
----
rougail:
variable1:
- a
- b
- c
variable2: a_choice
----