[tutorial 024] Conditional hidden family and calculated default value (config and doc)

This commit is contained in:
egarette@silique.fr 2024-09-07 19:06:46 +02:00
parent 57640cb47d
commit d17f2d3c7b

View file

@ -25,6 +25,7 @@ include_toc: true
- [[tutorial 021] Bases type is optional if default value](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_021/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_021~1..v1.1_021))
- [[tutorial 022] A variable in "shorthand" mode](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 023] Conditional hidden family and calculated default value](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 024] Conditional hidden family and calculated default value](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))
# Description
@ -95,7 +96,10 @@ manual:
use_for_https: true # Also use this proxy for HTTPS
https_proxy: # HTTPS Proxy
https_proxy:
description: HTTPS Proxy
hidden:
variable: manual.use_for_https
address:
description: HTTPS address
@ -141,7 +145,9 @@ foo@bar:~$ rougail -v 1.1 -m firefox/ -o doc -do github
##### HTTPS Proxy
`basic`
`basic` _`hidden`_
**Hidden**: manual.use_for_https.
| Variable                                                                                                 | Description                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
@ -191,8 +197,7 @@ foo@bar:~$ rougail -v 1.1 -m firefox -u file -ff config/02/config.yaml
```
<pre>🛑 ERRORS
<span style="color: #ff0000">┣━━ </span>The following variables are mandatory but have no value:
<span style="color: #ff0000">┣━━ </span> - manual.http_proxy.address (HTTP address)
<span style="color: #ff0000">┗━━ </span> - manual.https_proxy.address (HTTPS address)
<span style="color: #ff0000">┗━━ </span> - manual.http_proxy.address (HTTP address)
</pre>
## Example 3
@ -213,7 +218,7 @@ manual:
foo@bar:~$ rougail -v 1.1 -m firefox -u file -ff config/03/config.yaml
```
<pre>🛑 ERRORS
<span style="color: #ff0000">┣━━ </span>The following variables are mandatory but have no value:
<span style="color: #ff0000">┣━━ </span>The following variables are inaccessible but are empty and mandatory :
<span style="color: #ff0000">┗━━ </span> - manual.https_proxy.address (HTTPS address)
</pre>
### Output in read write mode
@ -222,7 +227,7 @@ foo@bar:~$ rougail -v 1.1 -m firefox -u file -ff config/03/config.yaml
foo@bar:~$ rougail -v 1.1 -m firefox -u file -ff config/03/config.yaml --exporter.read_write
```
<pre>🛑 ERRORS
<span style="color: #ff0000">┣━━ </span>The following variables are mandatory but have no value:
<span style="color: #ff0000">┣━━ </span>The following variables are inaccessible but are empty and mandatory :
<span style="color: #ff0000">┗━━ </span> - manual.https_proxy.address (HTTPS address)
</pre>
## Example 4
@ -245,7 +250,7 @@ manual:
foo@bar:~$ rougail -v 1.1 -m firefox -u file -ff config/04/config.yaml
```
<pre>🛑 ERRORS
<span style="color: #ff0000">┣━━ </span>The following variables are mandatory but have no value:
<span style="color: #ff0000">┣━━ </span>The following variables are inaccessible but are empty and mandatory :
<span style="color: #ff0000">┗━━ </span> - manual.https_proxy.address (HTTPS address)
</pre>
## Example 5