From 4039e017695fc73f29a0bd478834c0bce6127675 Mon Sep 17 00:00:00 2001 From: gwen Date: Mon, 1 Jun 2026 18:15:25 +0200 Subject: [PATCH] docs(cli): there was some french, translated now --- docs/cli.rst | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/docs/cli.rst b/docs/cli.rst index 27e103c50..d1abe6d22 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -1,7 +1,7 @@ The Rougail Command Line Interface ======================================== -Les help +help ------------ :: @@ -70,11 +70,10 @@ CLI root ┣━━ 📓 HTTPS address: https.proxy.net ◀ loaded from the YAML file "config/01/config.yml" (⏳ https.proxy.net ◀ loaded from the YAML file "config/01/config.yml" ⏳ http.proxy.net) ┗━━ 📓 HTTPS port: 3128 ---- -sortie normale: +.. FIXME: sortie normale: -sortie pour n'afficher qu'une family: +.. FIXME: sortie pour n'afficher qu'une family: :: @@ -100,13 +99,13 @@ on a: ┗━━ 📓 SOCKS host version used by proxy: v5 -sortie plus précise: +for a more precise output: :: rougail -m firefox/ -u yaml -yf config/01/config.yml --cli.root manual.https_proxy -on a: +we have :: @@ -125,15 +124,14 @@ 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. +The option "`--cli.unknown_user_data_error`" looks like "`--cli.invalid_user_data_error`" but here it concerns unknown variables (or here disabled or hidden but it amounts to the same thing) loaded into 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 ` then it appears in the output as an error instead of a warning. -Le output doc +The output doc ---------------- :: @@ -160,15 +158,14 @@ Le output doc --doc.no-document_a_type -Le formatter +The formatter ---------------- :: - on va maintenant vérifier le formatage du fichier - rougail -o formatter -m structure.yml > a.yml; mv a.yml structure.yml + rougail -o formatter -m structure.yml > a.yml; mv a.yml structure.yml -Les namespaces +The namespaces ----------------- :: @@ -180,17 +177,25 @@ Les namespaces rougail -m structure.yml -u yaml -yf userdata.yml -s intranet -xn hosts orem srem prom -xd 0 hosts.yml -xd 1 packages/OREM -xd 2 packages/SREM -xd 3 packages/SREP -L'export ansible +Commandline user data +---------------------------- + +Commandline user data can be used: + +:: + + rougail -m mon_fichier.yml -u commandline --family.variable pouet + +Ansible export ------------------- rougail -m structure.yml -u yaml -yf userdata.yml -s intranet -xn hosts -xd 0 hosts.yml -o ansible > ansible.json - :: ansible-inventory -i $(which rougail) --list - voir si ansible liste bien ton inventaire :) +Ansible lists your inventory ::