diff --git a/README.md b/README.md index 5faf3926..3e562624 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ - [Summary](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/branch/1.1/README.md) -- [[tutorial v1.1_000] Creating a structure file](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] Let’s add our first variable](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] Let’s add our first variable +# [tutorial v1.1_002] Describe the variable -[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_001~1..v1.1_001) +[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_002~1..v1.1_002) -[Read the documentation](https://pedago.gwenaelremond.fr/bribes/rougail/tutorial/preliminary.html#let-s-add-our-first-variable) +[Read the documentation](https://pedago.gwenaelremond.fr/bribes/rougail/tutorial/preliminary.html#describe-the-variable) ## Screenshot @@ -31,7 +31,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 @@ -39,9 +39,9 @@ git switch --detach v1.1_001
-.
- └── firefox
- └── 00-proxy.yml
+.
+ └── firefox
+ └── 00-proxy.yml
🛑 ERRORS ┗━━ The following variables are mandatory but have no value: - ┗━━ proxy_mode + ┗━━ Configure Proxy Access to the Internet#### Output in read write mode @@ -104,7 +104,7 @@ rougail -m firefox/ -u yaml -yf config/01/config.yml --cli.read_write │ Undocumented but modified variable Default value │ ╰──────────────────────────────────────────────────╯ Variables: -┗━━ 📓 proxy_mode: null +┗━━ 📓 Configure Proxy Access to the Internet: null ### Example 2 @@ -124,7 +124,8 @@ rougail -m firefox/ -u yaml -yf config/02/config.yml │ Undocumented but modified variable Modified value │ ╰───────────────────────────────────────────────────╯ Variables: -┗━━ 📓 proxy_mode: No proxy ◀ loaded from the YAML file "config/02/config.yml" +┗━━ 📓 Configure Proxy Access to the Internet: No proxy ◀ loaded from the YAML + file "config/02/config.yml" ### Example 3 @@ -133,29 +134,20 @@ Variables: ```yml --- -proxy_mode: 1 +proxy_mode: foo ``` #### Output ```shell rougail -m firefox/ -u yaml -yf config/03/config.yml ``` -
🔔 WARNINGS -┗━━ 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" -🛑 ERRORS -┗━━ The following variables are mandatory but have no value: - ┗━━ proxy_mode --#### Output when invalid user datas is an error - -```shell -rougail -m firefox/ -u yaml -yf config/03/config.yml --cli.invalid_user_datas_error -``` -
🛑 ERRORS -┗━━ 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" +diff --git a/config/02/output_ro.html b/config/02/output_ro.html index e479e89e..df8b15cf 100644 --- a/config/02/output_ro.html +++ b/config/02/output_ro.html @@ -2,5 +2,6 @@ │ Undocumented but modified variable Modified value │ ╰───────────────────────────────────────────────────╯ Variables: -┗━━ 📓 proxy_mode: No proxy ◀ loaded from the YAML file "config/02/config.yml" +┗━━ 📓 Configure Proxy Access to the Internet: No proxy ◀ loaded from the YAML + file "config/02/config.yml" diff --git a/config/03/cmd_invalid.txt b/config/03/cmd_invalid.txt deleted file mode 100644 index ffde9149..00000000 --- a/config/03/cmd_invalid.txt +++ /dev/null @@ -1 +0,0 @@ -rougail -m firefox/ -u yaml -yf config/03/config.yml --cli.invalid_user_datas_error \ No newline at end of file diff --git a/config/03/config.yml b/config/03/config.yml index bf6f64ca..e3fa25da 100644 --- a/config/03/config.yml +++ b/config/03/config.yml @@ -1,2 +1,2 @@ --- -proxy_mode: 1 +proxy_mode: foo diff --git a/config/03/output_invalid.html b/config/03/output_invalid.html deleted file mode 100644 index a063bf90..00000000 --- a/config/03/output_invalid.html +++ /dev/null @@ -1,4 +0,0 @@ -╭───────────────────── Caption ─────────────────────╮ +│ Undocumented but modified variable Modified value │ +╰───────────────────────────────────────────────────╯ +Variables: +┗━━ 📓 Configure Proxy Access to the Internet: foo ◀ loaded from the YAML file + "config/03/config.yml"-- [[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)) diff --git a/config/01/output_ro.html b/config/01/output_ro.html index 45f12184..7ef594fb 100644 --- a/config/01/output_ro.html +++ b/config/01/output_ro.html @@ -1,4 +1,4 @@🛑 ERRORS ┗━━ The following variables are mandatory but have no value: - ┗━━ proxy_mode + ┗━━ Configure Proxy Access to the Internetdiff --git a/config/01/output_rw.html b/config/01/output_rw.html index 9446addf..4722b898 100644 --- a/config/01/output_rw.html +++ b/config/01/output_rw.html @@ -2,5 +2,5 @@ │ Undocumented but modified variable Default value │ ╰──────────────────────────────────────────────────╯ Variables: -┗━━ 📓 proxy_mode: null +┗━━ 📓 Configure Proxy Access to the Internet: null
🛑 ERRORS -┗━━ 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" -diff --git a/config/03/output_ro.html b/config/03/output_ro.html index e1b29bf8..094fc93b 100644 --- a/config/03/output_ro.html +++ b/config/03/output_ro.html @@ -1,7 +1,7 @@ -
🔔 WARNINGS -┗━━ 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" -🛑 ERRORS -┗━━ The following variables are mandatory but have no value: - ┗━━ proxy_mode +╭───────────────────── Caption ─────────────────────╮ +│ Undocumented but modified variable Modified value │ +╰───────────────────────────────────────────────────╯ +Variables: +┗━━ 📓 Configure Proxy Access to the Internet: foo ◀ loaded from the YAML file + "config/03/config.yml"diff --git a/tree.html b/tree.html index a747e45f..d3d96ddc 100644 --- a/tree.html +++ b/tree.html @@ -25,9 +25,9 @@Directory Tree
- .
- └── firefox
- └── 00-proxy.yml
+ .
+ └── firefox
+ └── 00-proxy.yml
2 directories, 1 file