58 lines
1.7 KiB
ReStructuredText
58 lines
1.7 KiB
ReStructuredText
:orphan:
|
|
|
|
The Rougail Command Line Interface
|
|
========================================
|
|
|
|
Standard usage
|
|
-----------------
|
|
|
|
::
|
|
|
|
rougail -m firefox/ -u yaml -yf config/02/config.yml
|
|
|
|
|
|
|
|
::
|
|
|
|
rougail --cli.versions
|
|
|
|
tiramisu: 5.2.0a9
|
|
tiramisu-cmdline-parser: 0.7.0a1
|
|
rougail: 1.2.0a29
|
|
rougail-cli: 0.2.0a19
|
|
rougail-user-data-environment: 0.1.0a9
|
|
rougail-user-data-yaml: 0.2.0a11
|
|
rougail-output-console: 0.2.0a11
|
|
rougail-output-json: 0.2.0a8
|
|
|
|
::
|
|
|
|
env ROUGAIL_MANUAL.USE_FOR_HTTPS=true rougail -m structfile/proxy2.yml -u yaml environment --yaml.filename userdata/proxy.yml -o json
|
|
|
|
::
|
|
|
|
env ROUGAIL_MANUAL.USE_FOR_HTTPS=true rougail -m structfile/proxy2.yml -u yaml --yaml.filename userdata/proxy.yml -o json --json.get manual.https_proxy --json.read_write
|
|
{
|
|
"address": "toto.fr",
|
|
"port": "8888"
|
|
}
|
|
|
|
Invalid user data error
|
|
-----------------------------
|
|
|
|
::
|
|
|
|
rougail -m firefox/ -u yaml -yf config/02/config.yml --cli.invalid_user_data_error
|
|
|
|
Unknown user data error
|
|
-----------------------------
|
|
|
|
l'option "`--cli.unknown_user_data_error`", ca ressemble à "`--cli.invalid_user_data_error`" mais ca concerne là les variables inconnues (ou ici désactivé ou hidden mais ca reviens au meme pour moi) chargés dans des user data.
|
|
|
|
https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_050/README.md#output-when-unknown-user-data-is-an-error
|
|
|
|
.. note:: The `--cli.unknown_user_data_error` option changes the behaviour of the Rougail CLI's standard output:
|
|
when an unknown (or disabled or hidden) variable is declared in the :term:`user data file <user data>`
|
|
then it appears in the output as an error instead of a warning.
|
|
|
|
|