@ -1,9 +1,9 @@
- [Summary ](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/branch/1.1/README.md )
- [[tutorial v1.1_000] An empty structured file with format version](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_000/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_000~1..v1.1_000 ))
- [[tutorial v1.1_001] A first variable with only a name](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_001/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_001~1..v1.1_001 ))
# [tutorial v1.1_001)] A first variable with only a nam e
# [tutorial v1.1_002)] Describe the variabl e
[View the diff ](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_00 1~1..v1.1_001 )
[View the diff ](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_00 2~1..v1.1_002 )
## Screenshot
@ -29,7 +29,7 @@ pip install rougail-cli rougail-output-exporter rougail-output-doc rougail-user-
Then switch to the tutorial page:
```shell
git switch --detach v1.1_001
git switch --detach v1.1_002
```
## Structure
@ -37,9 +37,9 @@ git switch --detach v1.1_001
< p >
< a href = "https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_00 1 /./"> .< / a > < br / >
└── < a href = "https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_00 1 /./firefox/"> firefox< / a > < br / >
└── < a href = "https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_00 1 /./firefox/00-proxy.yml"> 00-proxy.yml< / a > < br / >
< a href = "https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_00 2 /./"> .< / a > < br / >
└── < a href = "https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_00 2 /./firefox/"> firefox< / a > < br / >
└── < a href = "https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_00 2 /./firefox/00-proxy.yml"> 00-proxy.yml< / a > < br / >
< br / > < br / > < / p >
Contents of the firefox/00-proxy.yml file
@ -49,7 +49,7 @@ Contents of the firefox/00-proxy.yml file
---
version: 1.1
proxy_mode:
proxy_mode: # Configure Proxy Access to the Internet
...
```
@ -60,18 +60,18 @@ rougail -m firefox/ -o doc
```
| Variable | Description |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **proxy_mode** < br /> [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | |
| **proxy_mode** < br /> [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Configure Proxy Access to the Internet. |
### Let's generate the changelog
```shell
rougail -m firefox/ -o doc --doc.contents changelog
```
#### New variable
#### Modified variable
| Variable | Description |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **proxy_mode** < br /> [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | |
| **proxy_mode** < br /> [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | < ins > Configure Proxy Access to the Internet.</ ins > |
## User datas
@ -91,7 +91,7 @@ rougail -m firefox/ -u yaml -yf config/01/config.yml
```
< pre >< span style = "font-weight: bold; color: #ff0000 " > 🛑 ERRORS</ span >
< span style = "color: #ff0000 " > ┗━━ </ span > The following variables are mandatory but have no value:
< span style = "color: #ff0000 " > </ span >< span style = "color: #ff0000 " > ┗━━ </ span > proxy_mode
< span style = "color: #ff0000 " > </ span >< span style = "color: #ff0000 " > ┗━━ </ span > Configure Proxy Access to the Internet
< / pre >
#### Output in read write mode
@ -102,7 +102,7 @@ rougail -m firefox/ -u yaml -yf config/01/config.yml --cli.read_write
│ Variable < span style = "color: #ffd700 " > Default value</ span > │
╰────────────────────────╯
Variables:
< span style = "color: #5c5cff " > ┗━━ </ span > 📓 proxy_mode : < span style = "color: #ffd700 " > null</ span >
< span style = "color: #5c5cff " > ┗━━ </ span > 📓 Configure Proxy Access to the Internet : < span style = "color: #ffd700 " > null</ span >
< / pre >
### Example 2
@ -122,7 +122,7 @@ rougail -m firefox/ -u yaml -yf config/02/config.yml
│ Variable Modified value │
╰─────────────────────────╯
Variables:
< span style = "color: #5c5cff " > ┗━━ </ span > 📓 proxy_mode : No proxy ◀ loaded from the YAML file "config/02/config.yml"
< span style = "color: #5c5cff " > ┗━━ </ span > 📓 Configure Proxy Access to the Internet : No proxy ◀ loaded from the YAML file "config/02/config.yml"
< / pre >
### Example 3
@ -131,27 +131,19 @@ Variables:
```yml
---
proxy_mode: 1
proxy_mode: foo
```
#### Output
```shell
rougail -m firefox/ -u yaml -yf config/03/config.yml
```
< pre >< span style = "font-weight: bold; color: #ffff00 " > 🔔 WARNINGS</ span >
< span style = "color: #ffff00 " > ┗━━ </ span > the value "1" is an invalid string for "proxy_mode", which is not a string, it will be ignored when loading from the YAML file "config/03/config.yml"
< span style = "font-weight: bold; color: #ff0000 " > 🛑 ERRORS</ span >
< span style = "color: #ff0000 " > ┗━━ </ span > The following variables are mandatory but have no value:
< span style = "color: #ff0000 " > </ span >< span style = "color: #ff0000 " > ┗━━ </ span > proxy_mode
< / pre >
#### Output when invalid user datas is an error
```shell
rougail -m firefox/ -u yaml -yf config/03/config.yml --cli.invalid_user_datas_error
```
< pre >< span style = "font-weight: bold; color: #ff0000 " > 🛑 ERRORS</ span >
< span style = "color: #ff0000 " > ┗━━ </ span > the value "1" is an invalid string for "proxy_mode", which is not a string, it will be ignored when loading from the YAML file "config/03/config.yml"
< pre > ╭──────── Caption ────────╮
│ Variable Modified value │
╰─────────────────────────╯
Variables:
< span style = "color: #5c5cff " > ┗━━ </ span > 📓 Configure Proxy Access to the Internet: foo ◀ loaded from the YAML file "config/03/config.yml"
< / pre >
- [[tutorial v1.1_002] Describe the variable](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_002/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_002~1..v1.1_002 ))
- [[tutorial v1.1_003] Set a default value](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_003/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_003~1..v1.1_003))