[tutorial v1.1_012)] Set a default value (config and doc)
This commit is contained in:
parent
4763a5265d
commit
220040bd41
6 changed files with 64 additions and 50 deletions
71
README.md
71
README.md
|
|
@ -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_010] A first variable with only a name](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_010/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_010~1..v1.1_010))
|
- [[tutorial v1.1_011] Describe the variable](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_011/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_011~1..v1.1_011))
|
||||||
|
|
||||||
# [tutorial v1.1_011)] Describe the variable
|
# [tutorial v1.1_012)] Set a default value
|
||||||
|
|
||||||
[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_011~1..v1.1_011)
|
[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_012~1..v1.1_012)
|
||||||
|
|
||||||
|
|
||||||
## Screenshot
|
## Screenshot
|
||||||
|
|
@ -23,31 +23,31 @@
|
||||||
---
|
---
|
||||||
version: 1.1
|
version: 1.1
|
||||||
|
|
||||||
proxy_mode: # Configure Proxy Access to the Internet
|
proxy_mode: No proxy # Configure Proxy Access to the Internet
|
||||||
...
|
...
|
||||||
|
|
||||||
```
|
```
|
||||||
### Let's generate the documentation
|
### Let's generate the documentation
|
||||||
|
|
||||||
```console
|
```console
|
||||||
foo@bar:~$ git switch --detach v1.1_011
|
foo@bar:~$ git switch --detach v1.1_012
|
||||||
foo@bar:~$ rougail -m firefox/ -o doc -do github
|
foo@bar:~$ rougail -m firefox/ -o doc -do github
|
||||||
```
|
```
|
||||||
| Variable | Description |
|
| Variable | Description |
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **proxy_mode**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Configure Proxy Access to the Internet. |
|
| **proxy_mode**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Configure Proxy Access to the Internet.<br/>**Default**: No proxy |
|
||||||
|
|
||||||
### Let's generate the changelog
|
### Let's generate the changelog
|
||||||
|
|
||||||
```console
|
```console
|
||||||
foo@bar:~$ git switch --detach v1.1_011
|
foo@bar:~$ git switch --detach v1.1_012
|
||||||
foo@bar:~$ rougail -m firefox/ -o doc --doc.contents changelog -do github
|
foo@bar:~$ rougail -m firefox/ -o doc --doc.contents changelog -do github
|
||||||
```
|
```
|
||||||
#### Modified variable
|
#### Modified variable
|
||||||
|
|
||||||
| Variable | Description |
|
| Variable | Description |
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **proxy_mode**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | <ins>Configure Proxy Access to the Internet.</ins> |
|
| **proxy_mode**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Configure Proxy Access to the Internet.<br/>**Default**: <ins>No proxy</ins> |
|
||||||
|
|
||||||
|
|
||||||
## User datas
|
## User datas
|
||||||
|
|
@ -64,12 +64,14 @@ foo@bar:~$ rougail -m firefox/ -o doc --doc.contents changelog -do github
|
||||||
#### Output
|
#### Output
|
||||||
|
|
||||||
```console
|
```console
|
||||||
foo@bar:~$ git switch --detach v1.1_011
|
foo@bar:~$ git switch --detach v1.1_012
|
||||||
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>╭─────── Caption ────────╮
|
||||||
<span style="color: #ff0000">┗━━ </span>The following variables are mandatory but have no value:
|
│ Variable <span style="color: #ffd700">Default value</span> │
|
||||||
<span style="color: #ff0000"> </span><span style="color: #ff0000">┗━━ </span>Configure Proxy Access to the Internet
|
╰────────────────────────╯
|
||||||
|
Variables:
|
||||||
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: <span style="color: #ffd700">No proxy</span>
|
||||||
</pre>
|
</pre>
|
||||||
### Example 2
|
### Example 2
|
||||||
|
|
||||||
|
|
@ -84,14 +86,15 @@ proxy_mode: No proxy
|
||||||
#### Output
|
#### Output
|
||||||
|
|
||||||
```console
|
```console
|
||||||
foo@bar:~$ git switch --detach v1.1_011
|
foo@bar:~$ git switch --detach v1.1_012
|
||||||
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>╭──────── Caption ────────╮
|
<pre>╭────────────── Caption ───────────────╮
|
||||||
│ Variable Modified value │
|
│ Variable Modified value │
|
||||||
╰─────────────────────────╯
|
│ (<span style="color: #00aa00">⏳ Original default value</span>) │
|
||||||
|
╰──────────────────────────────────────╯
|
||||||
Variables:
|
Variables:
|
||||||
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: No proxy ◀ loaded from the YAML file "config/02/config.yaml"
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: No proxy ◀ loaded from the YAML file "config/02/config.yaml" (⏳ <span style="color: #00aa00">No proxy</span>)
|
||||||
</pre>
|
</pre>
|
||||||
### Example 3
|
### Example 3
|
||||||
|
|
||||||
|
|
@ -106,14 +109,15 @@ proxy_mode: Manual proxy configuration
|
||||||
#### Output
|
#### Output
|
||||||
|
|
||||||
```console
|
```console
|
||||||
foo@bar:~$ git switch --detach v1.1_011
|
foo@bar:~$ git switch --detach v1.1_012
|
||||||
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 ───────────────╮
|
||||||
│ Variable Modified value │
|
│ Variable Modified value │
|
||||||
╰─────────────────────────╯
|
│ (<span style="color: #00aa00">⏳ Original default value</span>) │
|
||||||
|
╰──────────────────────────────────────╯
|
||||||
Variables:
|
Variables:
|
||||||
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: Manual proxy configuration ◀ loaded from the YAML file "config/03/config.yaml"
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: Manual proxy configuration ◀ loaded from the YAML file "config/03/config.yaml" (⏳ <span style="color: #00aa00">No proxy</span>)
|
||||||
</pre>
|
</pre>
|
||||||
### Example 4
|
### Example 4
|
||||||
|
|
||||||
|
|
@ -128,14 +132,15 @@ proxy_mode: foo
|
||||||
#### Output
|
#### Output
|
||||||
|
|
||||||
```console
|
```console
|
||||||
foo@bar:~$ git switch --detach v1.1_011
|
foo@bar:~$ git switch --detach v1.1_012
|
||||||
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>╭──────── Caption ────────╮
|
<pre>╭────────────── Caption ───────────────╮
|
||||||
│ Variable Modified value │
|
│ Variable Modified value │
|
||||||
╰─────────────────────────╯
|
│ (<span style="color: #00aa00">⏳ Original default value</span>) │
|
||||||
|
╰──────────────────────────────────────╯
|
||||||
Variables:
|
Variables:
|
||||||
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: foo ◀ loaded from the YAML file "config/04/config.yaml"
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: foo ◀ loaded from the YAML file "config/04/config.yaml" (⏳ <span style="color: #00aa00">No proxy</span>)
|
||||||
</pre>
|
</pre>
|
||||||
### Example 5
|
### Example 5
|
||||||
|
|
||||||
|
|
@ -150,15 +155,17 @@ proxy_mode: 1
|
||||||
#### Output
|
#### Output
|
||||||
|
|
||||||
```console
|
```console
|
||||||
foo@bar:~$ git switch --detach v1.1_011
|
foo@bar:~$ git switch --detach v1.1_012
|
||||||
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>
|
||||||
<span style="color: #ffff00">┗━━ </span>the value "1" is an invalid string for "proxy_mode" (Configure Proxy Access to the Internet), which is not a string, it will be ignored when loading from the YAML file "config/05/config.yaml"
|
<span style="color: #ffff00">┗━━ </span>the value "1" is an invalid string for "proxy_mode" (Configure Proxy Access to the Internet), which is not a string, it will be ignored when loading from the YAML file "config/05/config.yaml"
|
||||||
<span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
|
╭─────── Caption ────────╮
|
||||||
<span style="color: #ff0000">┗━━ </span>The following variables are mandatory but have no value:
|
│ Variable <span style="color: #ffd700">Default value</span> │
|
||||||
<span style="color: #ff0000"> </span><span style="color: #ff0000">┗━━ </span>Configure Proxy Access to the Internet
|
╰────────────────────────╯
|
||||||
|
Variables:
|
||||||
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: <span style="color: #ffd700">No proxy</span>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
- [[tutorial v1.1_012] Set a default value](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_012/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_012~1..v1.1_012))
|
- [[tutorial v1.1_013] The variable is a "choice" variable](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_013/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_013~1..v1.1_013))
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
|
<pre>╭─────── Caption ────────╮
|
||||||
<span style="color: #ff0000">┗━━ </span>The following variables are mandatory but have no value:
|
│ Variable <span style="color: #ffd700">Default value</span> │
|
||||||
<span style="color: #ff0000"> </span><span style="color: #ff0000">┗━━ </span>Configure Proxy Access to the Internet
|
╰────────────────────────╯
|
||||||
|
Variables:
|
||||||
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: <span style="color: #ffd700">No proxy</span>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<pre>╭──────── Caption ────────╮
|
<pre>╭────────────── Caption ───────────────╮
|
||||||
│ Variable Modified value │
|
│ Variable Modified value │
|
||||||
╰─────────────────────────╯
|
│ (<span style="color: #00aa00">⏳ Original default value</span>) │
|
||||||
|
╰──────────────────────────────────────╯
|
||||||
Variables:
|
Variables:
|
||||||
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: No proxy ◀ loaded from the YAML file "config/02/config.yaml"
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: No proxy ◀ loaded from the YAML file "config/02/config.yaml" (⏳ <span style="color: #00aa00">No proxy</span>)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<pre>╭──────── Caption ────────╮
|
<pre>╭────────────── Caption ───────────────╮
|
||||||
│ Variable Modified value │
|
│ Variable Modified value │
|
||||||
╰─────────────────────────╯
|
│ (<span style="color: #00aa00">⏳ Original default value</span>) │
|
||||||
|
╰──────────────────────────────────────╯
|
||||||
Variables:
|
Variables:
|
||||||
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: Manual proxy configuration ◀ loaded from the YAML file "config/03/config.yaml"
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: Manual proxy configuration ◀ loaded from the YAML file "config/03/config.yaml" (⏳ <span style="color: #00aa00">No proxy</span>)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<pre>╭──────── Caption ────────╮
|
<pre>╭────────────── Caption ───────────────╮
|
||||||
│ Variable Modified value │
|
│ Variable Modified value │
|
||||||
╰─────────────────────────╯
|
│ (<span style="color: #00aa00">⏳ Original default value</span>) │
|
||||||
|
╰──────────────────────────────────────╯
|
||||||
Variables:
|
Variables:
|
||||||
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: foo ◀ loaded from the YAML file "config/04/config.yaml"
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: foo ◀ loaded from the YAML file "config/04/config.yaml" (⏳ <span style="color: #00aa00">No proxy</span>)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
|
<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" (Configure Proxy Access to the Internet), which is not a string, it will be ignored when loading from the YAML file "config/05/config.yaml"
|
<span style="color: #ffff00">┗━━ </span>the value "1" is an invalid string for "proxy_mode" (Configure Proxy Access to the Internet), which is not a string, it will be ignored when loading from the YAML file "config/05/config.yaml"
|
||||||
<span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
|
╭─────── Caption ────────╮
|
||||||
<span style="color: #ff0000">┗━━ </span>The following variables are mandatory but have no value:
|
│ Variable <span style="color: #ffd700">Default value</span> │
|
||||||
<span style="color: #ff0000"> </span><span style="color: #ff0000">┗━━ </span>Configure Proxy Access to the Internet
|
╰────────────────────────╯
|
||||||
|
Variables:
|
||||||
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: <span style="color: #ffd700">No proxy</span>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue