diff --git a/README.md b/README.md index ea2abe78..a3ee803c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ - [Summary](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/branch/1.1/README.md) -- [[tutorial v1.1_073] Examples](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_073/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_073~1..v1.1_073)) +- [[tutorial v1.1_074] Help](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_074/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_074~1..v1.1_074)) -# [tutorial v1.1_074)] Help +# [tutorial v1.1_075)] A variable -[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_074~1..v1.1_074) +[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_075~1..v1.1_075) ## Screenshot @@ -29,7 +29,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_074 +git switch --detach v1.1_075 ``` ## Structure @@ -37,37 +37,26 @@ git switch --detach v1.1_074
-.
- └── firefox
- ├── 00-proxy.yml
- ├── 10-manual.yml
- ├── 20-manual.yml
- ├── 30-auto.yml
- └── 40-no_proxy.yml
+.
+ └── firefox
+ ├── 00-proxy.yml
+ ├── 10-manual.yml
+ ├── 20-manual.yml
+ ├── 30-auto.yml
+ ├── 40-no_proxy.yml
+ └── 50-prompt_authentication.yml
╭────────────── Caption ───────────────╮ -│ Variable Modified value │ -│ (⏳ Original default value) │ -╰──────────────────────────────────────╯ -Variables: -┣━━ 📓 Configure Proxy Access to the Internet: Automatic proxy configuration URL ◀ loaded from the YAML file "config/02/config.yml" (⏳ No proxy) -┣━━ 📓 Automatic proxy configuration URL: https://auto.proxy.net/wpad.dat ◀ loaded from the YAML file "config/02/config.yml" -┗━━ 📓 Address for which proxy will be desactivated: +🛑 ERRORS +┗━━ The following variables are mandatory but have no value: + ┗━━ Automatic proxy configuration URL### Example 3 @@ -191,28 +178,46 @@ Variables: ```yml --- -proxy_mode: Automatic proxy configuration URL -auto: https://auto.proxy.net/wpad.dat -no_proxy: - - .example.net - - 192.168.1.0/24 +proxy_mode: Manual proxy configuration +manual: + http_proxy: + address: http.proxy.net +proxy_dns_socks5: true ``` #### Output ```shell rougail -m firefox/ -u yaml -yf config/03/config.yml ``` -╭────────────── Caption ───────────────╮ -│ Variable Modified value │ -│ (⏳ Original default value) │ -╰──────────────────────────────────────╯ -Variables: -┣━━ 📓 Configure Proxy Access to the Internet: Automatic proxy configuration URL ◀ loaded from the YAML file "config/03/config.yml" (⏳ No proxy) -┣━━ 📓 Automatic proxy configuration URL: https://auto.proxy.net/wpad.dat ◀ loaded from the YAML file "config/03/config.yml" -┗━━ 📓 Address for which proxy will be desactivated: - ┣━━ .example.net ◀ loaded from the YAML file "config/03/config.yml" - ┗━━ 192.168.1.0/24 ◀ loaded from the YAML file "config/03/config.yml" +🔔 WARNINGS +┗━━ variable or family "proxy_dns_socks5" does not exist, it will be ignored when loading from the YAML file "config/03/config.yml" +🛑 ERRORS +┗━━ The following variables are mandatory but have no value: + ┗━━ Automatic proxy configuration URL ++### Example 4 + +#### config/04/config.yml + + +```yml +--- +proxy_mode: Manual proxy configuration +manual: + http_proxy: + address: http.proxy.net + socks_proxy: + version: v4 +``` +#### Output + +```shell +rougail -m firefox/ -u yaml -yf config/04/config.yml +``` +🛑 ERRORS +┗━━ The following variables are mandatory but have no value: + ┗━━ Automatic proxy configuration URL-- [[tutorial v1.1_075] A variable](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_075/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_075~1..v1.1_075)) +- [[tutorial v1.1_076] A variable](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_076/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_076~1..v1.1_076)) diff --git a/config/02/config.yml b/config/02/config.yml index 307e175b..135d8b3a 100644 --- a/config/02/config.yml +++ b/config/02/config.yml @@ -1,3 +1,5 @@ --- -proxy_mode: Automatic proxy configuration URL -auto: https://auto.proxy.net/wpad.dat +proxy_mode: Manual proxy configuration +manual: + http_proxy: + address: http.proxy.net diff --git a/config/02/output_ro.html b/config/02/output_ro.html index cf9920f9..e1ebfb1d 100644 --- a/config/02/output_ro.html +++ b/config/02/output_ro.html @@ -1,9 +1,4 @@ -╭────────────── Caption ───────────────╮ -│ Variable Modified value │ -│ (⏳ Original default value) │ -╰──────────────────────────────────────╯ -Variables: -┣━━ 📓 Configure Proxy Access to the Internet: Automatic proxy configuration URL ◀ loaded from the YAML file "config/02/config.yml" (⏳ No proxy) -┣━━ 📓 Automatic proxy configuration URL: https://auto.proxy.net/wpad.dat ◀ loaded from the YAML file "config/02/config.yml" -┗━━ 📓 Address for which proxy will be desactivated: +🛑 ERRORS +┗━━ The following variables are mandatory but have no value: + ┗━━ Automatic proxy configuration URLdiff --git a/config/03/config.yml b/config/03/config.yml index 53198970..d04e72ce 100644 --- a/config/03/config.yml +++ b/config/03/config.yml @@ -1,6 +1,6 @@ --- -proxy_mode: Automatic proxy configuration URL -auto: https://auto.proxy.net/wpad.dat -no_proxy: - - .example.net - - 192.168.1.0/24 +proxy_mode: Manual proxy configuration +manual: + http_proxy: + address: http.proxy.net +proxy_dns_socks5: true diff --git a/config/03/output_ro.html b/config/03/output_ro.html index 85e27e83..1e18d070 100644 --- a/config/03/output_ro.html +++ b/config/03/output_ro.html @@ -1,11 +1,6 @@ -╭────────────── Caption ───────────────╮ -│ Variable Modified value │ -│ (⏳ Original default value) │ -╰──────────────────────────────────────╯ -Variables: -┣━━ 📓 Configure Proxy Access to the Internet: Automatic proxy configuration URL ◀ loaded from the YAML file "config/03/config.yml" (⏳ No proxy) -┣━━ 📓 Automatic proxy configuration URL: https://auto.proxy.net/wpad.dat ◀ loaded from the YAML file "config/03/config.yml" -┗━━ 📓 Address for which proxy will be desactivated: - ┣━━ .example.net ◀ loaded from the YAML file "config/03/config.yml" - ┗━━ 192.168.1.0/24 ◀ loaded from the YAML file "config/03/config.yml" +🔔 WARNINGS +┗━━ variable or family "proxy_dns_socks5" does not exist, it will be ignored when loading from the YAML file "config/03/config.yml" +🛑 ERRORS +┗━━ The following variables are mandatory but have no value: + ┗━━ Automatic proxy configuration URLdiff --git a/config/04/cmd_ro.txt b/config/04/cmd_ro.txt new file mode 100644 index 00000000..4d43eae1 --- /dev/null +++ b/config/04/cmd_ro.txt @@ -0,0 +1 @@ +rougail -m firefox/ -u yaml -yf config/04/config.yml \ No newline at end of file diff --git a/config/04/config.yml b/config/04/config.yml new file mode 100644 index 00000000..8ceca7bc --- /dev/null +++ b/config/04/config.yml @@ -0,0 +1,7 @@ +--- +proxy_mode: Manual proxy configuration +manual: + http_proxy: + address: http.proxy.net + socks_proxy: + version: v4 diff --git a/config/04/output_ro.html b/config/04/output_ro.html new file mode 100644 index 00000000..e1ebfb1d --- /dev/null +++ b/config/04/output_ro.html @@ -0,0 +1,4 @@ +🛑 ERRORS +┗━━ The following variables are mandatory but have no value: + ┗━━ Automatic proxy configuration URL +diff --git a/firefox.png b/firefox.png index 16f5931c..34e6c084 100644 Binary files a/firefox.png and b/firefox.png differ diff --git a/tree.html b/tree.html index bfefaa08..f951518b 100644 --- a/tree.html +++ b/tree.html @@ -25,16 +25,17 @@Directory Tree
- .
- └── firefox
- ├── 00-proxy.yml
- ├── 10-manual.yml
- ├── 20-manual.yml
- ├── 30-auto.yml
- └── 40-no_proxy.yml
+ .
+ └── firefox
+ ├── 00-proxy.yml
+ ├── 10-manual.yml
+ ├── 20-manual.yml
+ ├── 30-auto.yml
+ ├── 40-no_proxy.yml
+ └── 50-prompt_authentication.yml
-2 directories, 5 files +2 directories, 6 files