rougail-output-doc/tests/docs/no_namespace/00_9choice_variable_multi.adoc

62 lines
1.6 KiB
Text
Raw Normal View History

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