add modif
This commit is contained in:
parent
2b0dd5e5bd
commit
cb52c774be
1 changed files with 39 additions and 0 deletions
|
|
@ -351,6 +351,45 @@ The constraints that come with the `choice` type
|
||||||
|
|
||||||
We say that the `proxy_mode` variable is *constrained* (by the `choice` type).
|
We say that the `proxy_mode` variable is *constrained* (by the `choice` type).
|
||||||
|
|
||||||
|
.. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_004/config/03/config.yml
|
||||||
|
:linenos:
|
||||||
|
:language: yaml
|
||||||
|
:caption: A user data specification
|
||||||
|
|
||||||
|
:tutorial:`Download this file from the rougail-tutorials git repository <src/tag/v1.1_004/config/03/config.yml>`
|
||||||
|
|
||||||
|
If we run the rougail CLI with this user datas, we have:
|
||||||
|
|
||||||
|
.. code-block:: text
|
||||||
|
:class: terminal
|
||||||
|
|
||||||
|
rougail -m firefox -u yaml -ff config/03/config.yaml
|
||||||
|
|
||||||
|
We have this output:
|
||||||
|
|
||||||
|
.. raw:: html
|
||||||
|
:url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_004/config/03/output_ro.html
|
||||||
|
:class: output
|
||||||
|
|
||||||
|
..
|
||||||
|
<pre>╭────────────── Caption ───────────────╮
|
||||||
|
│ Variable Modified value │
|
||||||
|
│ (<span style="color: #00aa00">⏳ Original default value</span>) │
|
||||||
|
╰──────────────────────────────────────╯
|
||||||
|
Variables:
|
||||||
|
<span style="color: #5c5cff">┗━━ </span>📓 Configure Proxy Access to the Internet: Manual proxy configuration ◀ loaded from the YAML file "config/03/config.yml" (⏳ <span style="color: #00aa00">No proxy</span>)
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
As we set the `proxy_mode` variable from a user data file,
|
||||||
|
we now have specified a value which is **not** a default value,
|
||||||
|
and the value appears in green, which means : "user data value".
|
||||||
|
|
||||||
|
.. FIXME: verifier que cette sortie est bonne (on a des valeurs différentes)
|
||||||
|
|
||||||
|
.. type-along:: The constraints that come with the `choice` property
|
||||||
|
|
||||||
|
The `proxy_mode` variable's possible values is *constrained*.
|
||||||
|
|
||||||
We have the list of the possible (authorized) values:
|
We have the list of the possible (authorized) values:
|
||||||
|
|
||||||
- `No proxy`
|
- `No proxy`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue