From 0dacebbd8cd09103c062457069b91b8a0f83b670 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 29 Dec 2025 12:21:13 +0100 Subject: [PATCH] fix: update doc --- README.fr.md | 10 +++++----- README.md | 10 +++++----- .../rougail_user_data_questionary.po | 14 +++++++------- locale/rougail_user_data_questionary.pot | 12 ++++++------ src/rougail/user_data_questionary/config.py | 7 +++---- .../rougail_user_data_questionary.mo | Bin 1474 -> 1474 bytes 6 files changed, 26 insertions(+), 27 deletions(-) diff --git a/README.fr.md b/README.fr.md index efb36dd..9418282 100644 --- a/README.fr.md +++ b/README.fr.md @@ -6,16 +6,16 @@ include_toc: true ## Définir des données utilisateur interactivement dans la console -> **🛈 Informations** +> [!NOTE] > > L'utilisateur va entrer les valeurs des variables dans une interface en ligne de commande. Ces variables vont être affichées les unes après les autres, permettant à l'utilisateur de changer ou ajouter des valeurs.\ > **Chemin** : questionary\ > *`désactivé`*\ > **Désactivé** : si questionary n'est pas mis dans "[Sélection pour données utilisateur](#step.user_data)" -| Variable | Description | Valeur par défaut | Type | -|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|---------------------|---------------------------------------------------------------------------------------------------| -| **questionary.mandatory**
**Ligne de commande** :
• -qm, --questionary.mandatory
• -nqm, --questionary.no-mandatory
**Variable d'environnement** : ROUGAILCLI_QUESTIONARY.MANDATORY | Demander des valeurs uniquement pour des variables obligatoires sans valeur. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | -| **questionary.show_secrets**
**Ligne de commande** :
• -qs, --questionary.show_secrets
• -nqs, --questionary.no-show_secrets
**Variable d'environnement** : ROUGAILCLI_QUESTIONARY.SHOW_SECRETS | Afficher les secrets plutôt que de les obscurcir. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | +| Variable | Description | Valeur par défaut | Type | +|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|---------------------|---------------------------------------------------------------------------------------------------| +| **questionary.mandatory**
**Ligne de commande** :
• -qm, --questionary.mandatory
• -nqm, --questionary.no-mandatory
**Variable d'environnement** : QUESTIONARY.MANDATORY | Demander des valeurs uniquement pour des variables obligatoires sans valeur. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | +| **questionary.show_secrets**
**Ligne de commande** :
• -qs, --questionary.show_secrets
• -nqs, --questionary.no-show_secrets
**Variable d'environnement** : QUESTIONARY.SHOW_SECRETS | Afficher les secrets plutôt que de les obscurcir. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | diff --git a/README.md b/README.md index fbe636b..353dda2 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,16 @@ include_toc: true ## Define user data interactively in the console -> **🛈 Informations** +> [!NOTE] > > The user will enter variable values in a command-line interface. The variables will be displayed one after another, allowing the user to change or add values.\ > **Path**: questionary\ > *`disabled`*\ > **Disabled**: if questionary is not set in "[Select for user datas](#step.user_data)" -| Variable | Description | Default value | Type | -|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|-----------------|-------------------------------------------------------------------------------------------------| -| **questionary.mandatory**
**Command line**:
• -qm, --questionary.mandatory
• -nqm, --questionary.no-mandatory
**Environment variable**: ROUGAILCLI_QUESTIONARY.MANDATORY | Ask values only for mandatories variables without any value. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | -| **questionary.show_secrets**
**Command line**:
• -qs, --questionary.show_secrets
• -nqs, --questionary.no-show_secrets
**Environment variable**: ROUGAILCLI_QUESTIONARY.SHOW_SECRETS | Show secrets instead of obscuring them. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | +| Variable | Description | Default value | Type | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|-----------------|-------------------------------------------------------------------------------------------------| +| **questionary.mandatory**
**Command line**:
• -qm, --questionary.mandatory
• -nqm, --questionary.no-mandatory
**Environment variable**: QUESTIONARY.MANDATORY | Ask values only for mandatories variables without any value. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | +| **questionary.show_secrets**
**Command line**:
• -qs, --questionary.show_secrets
• -nqs, --questionary.no-show_secrets
**Environment variable**: QUESTIONARY.SHOW_SECRETS | Show secrets instead of obscuring them. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | diff --git a/locale/fr/LC_MESSAGES/rougail_user_data_questionary.po b/locale/fr/LC_MESSAGES/rougail_user_data_questionary.po index ce8b73d..b895b3c 100644 --- a/locale/fr/LC_MESSAGES/rougail_user_data_questionary.po +++ b/locale/fr/LC_MESSAGES/rougail_user_data_questionary.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2025-12-02 13:40+0100\n" -"PO-Revision-Date: 2025-12-02 13:43+0100\n" +"POT-Creation-Date: 2025-12-29 12:20+0100\n" +"PO-Revision-Date: 2025-12-29 12:20+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr\n" @@ -30,16 +30,16 @@ msgstr "" "ligne de commande. Ces variables vont être affichées les unes après les " "autres, permettant à l'utilisateur de changer ou ajouter des valeurs." -#: src/rougail/user_data_questionary/config.py:39 +#: src/rougail/user_data_questionary/config.py:38 msgid "if questionary is not set in \"step.user_data\"" msgstr "si questionary n'est pas mis dans \"step.user_data\"" -#: src/rougail/user_data_questionary/config.py:42 +#: src/rougail/user_data_questionary/config.py:41 msgid "Ask values only for mandatories variables without any value" msgstr "" "Demander des valeurs uniquement pour des variables obligatoires sans valeur" -#: src/rougail/user_data_questionary/config.py:47 +#: src/rougail/user_data_questionary/config.py:46 msgid "Show secrets instead of obscuring them" msgstr "Afficher les secrets plutôt que de les obscurcir" @@ -47,11 +47,11 @@ msgstr "Afficher les secrets plutôt que de les obscurcir" msgid "questionary is not set in step.user_data" msgstr "questionary n'est pas mis dans step.user_data" -#: src/rougail/user_data_questionary/data.py:229 +#: src/rougail/user_data_questionary/data.py:224 msgid "Not a valid {0}" msgstr "N'est pas un valide {0}" -#: src/rougail/user_data_questionary/data.py:250 +#: src/rougail/user_data_questionary/data.py:245 msgid "Value must not be empty" msgstr "La valeur ne doit pas être vide" diff --git a/locale/rougail_user_data_questionary.pot b/locale/rougail_user_data_questionary.pot index 395ba66..8217d01 100644 --- a/locale/rougail_user_data_questionary.pot +++ b/locale/rougail_user_data_questionary.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2025-12-02 13:43+0100\n" +"POT-Creation-Date: 2025-12-29 12:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -23,15 +23,15 @@ msgstr "" msgid "The user will enter variable values in a command-line interface. The variables will be displayed one after another, allowing the user to change or add values." msgstr "" -#: src/rougail/user_data_questionary/config.py:39 +#: src/rougail/user_data_questionary/config.py:38 msgid "if questionary is not set in \"step.user_data\"" msgstr "" -#: src/rougail/user_data_questionary/config.py:42 +#: src/rougail/user_data_questionary/config.py:41 msgid "Ask values only for mandatories variables without any value" msgstr "" -#: src/rougail/user_data_questionary/config.py:47 +#: src/rougail/user_data_questionary/config.py:46 msgid "Show secrets instead of obscuring them" msgstr "" @@ -39,11 +39,11 @@ msgstr "" msgid "questionary is not set in step.user_data" msgstr "" -#: src/rougail/user_data_questionary/data.py:229 +#: src/rougail/user_data_questionary/data.py:224 msgid "Not a valid {0}" msgstr "" -#: src/rougail/user_data_questionary/data.py:250 +#: src/rougail/user_data_questionary/data.py:245 msgid "Value must not be empty" msgstr "" diff --git a/src/rougail/user_data_questionary/config.py b/src/rougail/user_data_questionary/config.py index 392d857..15b1ee8 100644 --- a/src/rougail/user_data_questionary/config.py +++ b/src/rougail/user_data_questionary/config.py @@ -32,10 +32,9 @@ questionary: description: {_("Define user data interactively in the console")} help: {_("The user will enter variable values in a command-line interface. The variables will be displayed one after another, allowing the user to change or add values.")} disabled: - jinja: | - {{% if step.user_data is not propertyerror and 'questionary' not in step.user_data %}} - disabled - {{% endif %}} + jinja: >- + {{{{ step.user_data is not propertyerror or 'questionary' not in step.user_data }}}} + return_type: boolean description: {_('if questionary is not set in "step.user_data"')} mandatory: diff --git a/src/rougail/user_data_questionary/locale/fr/LC_MESSAGES/rougail_user_data_questionary.mo b/src/rougail/user_data_questionary/locale/fr/LC_MESSAGES/rougail_user_data_questionary.mo index 19f318147ad9414a95ecee91b2fec73ee171a5f2..3f14690fbe0619f5521fbd7e5e94adcd431b4654 100644 GIT binary patch delta 21 dcmX@aeTaL*ekKkhO9ewCD