[tutorial v1.1_024)] A variable with type's parameters (config and doc)

This commit is contained in:
egarette@silique.fr 2025-11-07 06:16:14 +01:00
parent 68883b1638
commit 27a39b542c

View file

@ -1,9 +1,9 @@
- [Summary](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/branch/1.1/README.md) - [Summary](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/branch/1.1/README.md)
- [[tutorial v1.1_022] Putting a variable inside of a family or a sub family](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_022/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_022~1..v1.1_022)) - [[tutorial v1.1_023] A variable with type "domainname"](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_023/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_023~1..v1.1_023))
# [tutorial v1.1_023)] A variable with type "domainname" # [tutorial v1.1_024)] A variable with type's parameters
[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_023~1..v1.1_023) [View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_024~1..v1.1_024)
## Screenshot ## Screenshot
@ -50,13 +50,15 @@ manual: # Manual proxy configuration
address: address:
description: HTTP address description: HTTP address
type: domainname type: domainname
params:
allow_ip: true
... ...
``` ```
### Let's generate the documentation ### Let's generate the documentation
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -o doc foo@bar:~$ rougail -m firefox/ -o doc
``` ```
| Variable                                                                                        | Description                                                                                     | | Variable                                                                                        | Description                                                                                     |
@ -77,19 +79,19 @@ foo@bar:~$ rougail -m firefox/ -o doc
| Variable                                                                                            | Description                                                                                         | | Variable                                                                                            | Description                                                                                         |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **manual.http_proxy.address**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | HTTP address. | | **manual.http_proxy.address**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | HTTP address.<br/>**Validator**: the domain name can be an IP |
### Let's generate the changelog ### Let's generate the changelog
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -o doc --doc.contents changelog foo@bar:~$ rougail -m firefox/ -o doc --doc.contents changelog
``` ```
#### Modified variable #### Modified variable
| Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **manual.http_proxy.address**<br/>~~`string`~~ [<ins>`domainname`</ins>](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | HTTP address. | | **manual.http_proxy.address**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | HTTP address.<br/>**Validator**: <ins>the domain name can be an IP</ins> |
## User datas ## User datas
@ -106,7 +108,7 @@ foo@bar:~$ rougail -m firefox/ -o doc --doc.contents changelog
#### Output #### Output
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/01/config.yaml foo@bar:~$ rougail -m firefox/ -u yaml -ff config/01/config.yaml
``` ```
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span> <pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
@ -118,7 +120,7 @@ foo@bar:~$ rougail -m firefox/ -u yaml -ff config/01/config.yaml
#### Output in read write mode #### Output in read write mode
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/01/config.yaml --cli.read_write foo@bar:~$ rougail -m firefox/ -u yaml -ff config/01/config.yaml --cli.read_write
``` ```
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span> <pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
@ -140,7 +142,7 @@ proxy_mode: Manual proxy configuration
#### Output #### Output
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/02/config.yaml foo@bar:~$ rougail -m firefox/ -u yaml -ff config/02/config.yaml
``` ```
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span> <pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
@ -152,7 +154,7 @@ foo@bar:~$ rougail -m firefox/ -u yaml -ff config/02/config.yaml
#### Output in read write mode #### Output in read write mode
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/02/config.yaml --cli.read_write foo@bar:~$ rougail -m firefox/ -u yaml -ff config/02/config.yaml --cli.read_write
``` ```
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span> <pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
@ -177,7 +179,7 @@ manual:
#### Output #### Output
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/03/config.yaml foo@bar:~$ rougail -m firefox/ -u yaml -ff config/03/config.yaml
``` ```
<pre>╭────────────── Caption ───────────────╮ <pre>╭────────────── Caption ───────────────╮
@ -193,7 +195,7 @@ Variables:
#### Output in read write mode #### Output in read write mode
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/03/config.yaml --cli.read_write foo@bar:~$ rougail -m firefox/ -u yaml -ff config/03/config.yaml --cli.read_write
``` ```
<pre>╭────────────── Caption ───────────────╮ <pre>╭────────────── Caption ───────────────╮
@ -223,7 +225,7 @@ manual:
#### Output #### Output
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/04/config.yaml foo@bar:~$ rougail -m firefox/ -u yaml -ff config/04/config.yaml
``` ```
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span> <pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
@ -241,7 +243,7 @@ Variables:
#### Output in read write mode #### Output in read write mode
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/04/config.yaml --cli.read_write foo@bar:~$ rougail -m firefox/ -u yaml -ff config/04/config.yaml --cli.read_write
``` ```
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span> <pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
@ -276,7 +278,7 @@ manual:
#### Output #### Output
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/05/config.yaml foo@bar:~$ rougail -m firefox/ -u yaml -ff config/05/config.yaml
``` ```
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span> <pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
@ -296,7 +298,7 @@ Variables:
#### Output in read write mode #### Output in read write mode
```console ```console
foo@bar:~$ git switch --detach v1.1_023 foo@bar:~$ git switch --detach v1.1_024
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/05/config.yaml --cli.read_write foo@bar:~$ rougail -m firefox/ -u yaml -ff config/05/config.yaml --cli.read_write
``` ```
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span> <pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
@ -315,4 +317,4 @@ Variables:
</pre> </pre>
- [[tutorial v1.1_024] A variable with type's parameters](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_024/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_024~1..v1.1_024)) - [[tutorial v1.1_025] A variable with type "port"](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_025/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_025~1..v1.1_025))