fix: values is a dict
This commit is contained in:
parent
613fe24c97
commit
bd2ec28a64
6 changed files with 27 additions and 23 deletions
12
README.fr.md
12
README.fr.md
|
|
@ -11,11 +11,9 @@ include_toc: true
|
|||
> 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 |
|
||||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|---------------------|---------------------------------------------------------------------------------------------------|
|
||||
| **<a id="questionary.mandatory" name="questionary.mandatory">questionary.mandatory</a>**<br/>**Ligne de commande** : <br/>• -qm, --questionary.mandatory<br/>• -nqm, --questionary.no-mandatory<br/>**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` |
|
||||
| **<a id="questionary.show_secrets" name="questionary.show_secrets">questionary.show_secrets</a>**<br/>**Ligne de commande** : <br/>• -qs, --questionary.show_secrets<br/>• -nqs, --questionary.no-show_secrets<br/>**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` |
|
||||
|
||||
> **Désactivé** : si questionary n'est pas mis dans "[sélection pour user data](#step.user_data)".
|
||||
|
||||
| Variable | Description | Valeur par défaut | Type |
|
||||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|---------------------|---------------------------------------------------------------------------------------------------|
|
||||
| **<a id="questionary.mandatory" name="questionary.mandatory">questionary.mandatory</a>**<br/>**Ligne de commande** : <br/>• -qm, --questionary.mandatory<br/>• -nqm, --questionary.no-mandatory<br/>**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` |
|
||||
| **<a id="questionary.show_secrets" name="questionary.show_secrets">questionary.show_secrets</a>**<br/>**Ligne de commande** : <br/>• -qs, --questionary.show_secrets<br/>• -nqs, --questionary.no-show_secrets<br/>**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` |
|
||||
|
|
|
|||
12
README.md
12
README.md
|
|
@ -11,11 +11,9 @@ include_toc: true
|
|||
> 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 |
|
||||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|-----------------|-------------------------------------------------------------------------------------------------|
|
||||
| **<a id="questionary.mandatory" name="questionary.mandatory">questionary.mandatory</a>**<br/>**Command line**: <br/>• -qm, --questionary.mandatory<br/>• -nqm, --questionary.no-mandatory<br/>**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` |
|
||||
| **<a id="questionary.show_secrets" name="questionary.show_secrets">questionary.show_secrets</a>**<br/>**Command line**: <br/>• -qs, --questionary.show_secrets<br/>• -nqs, --questionary.no-show_secrets<br/>**Environment variable**: QUESTIONARY.SHOW_SECRETS | Show secrets instead of obscuring them. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` |
|
||||
|
||||
> **Disabled**: if questionary is not set in "[select for user data](#step.user_data)".
|
||||
|
||||
| Variable | Description | Default value | Type |
|
||||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|-----------------|-------------------------------------------------------------------------------------------------|
|
||||
| **<a id="questionary.mandatory" name="questionary.mandatory">questionary.mandatory</a>**<br/>**Command line**: <br/>• -qm, --questionary.mandatory<br/>• -nqm, --questionary.no-mandatory<br/>**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` |
|
||||
| **<a id="questionary.show_secrets" name="questionary.show_secrets">questionary.show_secrets</a>**<br/>**Command line**: <br/>• -qs, --questionary.show_secrets<br/>• -nqs, --questionary.no-show_secrets<br/>**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` |
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2025-12-29 12:20+0100\n"
|
||||
"PO-Revision-Date: 2025-12-29 12:20+0100\n"
|
||||
"POT-Creation-Date: 2026-06-13 06:55+0200\n"
|
||||
"PO-Revision-Date: 2026-06-13 07:06+0200\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
|
|
@ -14,7 +14,7 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: pygettext.py 1.5\n"
|
||||
"X-Generator: Poedit 3.8\n"
|
||||
"X-Generator: Poedit 3.9\n"
|
||||
|
||||
#: src/rougail/user_data_questionary/config.py:32
|
||||
msgid "Define user data interactively in the console"
|
||||
|
|
@ -47,11 +47,15 @@ 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:224
|
||||
#: src/rougail/user_data_questionary/data.py:161
|
||||
msgid "loaded from questionary"
|
||||
msgstr "chargé depuis questionary"
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:228
|
||||
msgid "Not a valid {0}"
|
||||
msgstr "N'est pas un valide {0}"
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:245
|
||||
#: src/rougail/user_data_questionary/data.py:249
|
||||
msgid "Value must not be empty"
|
||||
msgstr "La valeur ne doit pas être vide"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2025-12-29 12:20+0100\n"
|
||||
"POT-Creation-Date: 2026-06-13 07:07+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
@ -39,11 +39,15 @@ msgstr ""
|
|||
msgid "questionary is not set in step.user_data"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:224
|
||||
#: src/rougail/user_data_questionary/data.py:161
|
||||
msgid "loaded from questionary"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:228
|
||||
msgid "Not a valid {0}"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:245
|
||||
#: src/rougail/user_data_questionary/data.py:249
|
||||
msgid "Value must not be empty"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class RougailUserDataQuestionary:
|
|||
"source": "Questionary",
|
||||
"errors": self.errors,
|
||||
"warnings": self.warnings,
|
||||
"values": [],
|
||||
"values": {},
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue