fix: update doc
This commit is contained in:
parent
a71b476307
commit
bd18bdfb31
6 changed files with 47 additions and 26 deletions
14
README.md
14
README.md
|
|
@ -1,2 +1,14 @@
|
|||
# rougail-user-data-questionary
|
||||
# Define user datas interactivly
|
||||
|
||||
> **🛈 Informations**
|
||||
>
|
||||
> **<a id="questionary" name="questionary">questionary</a>**\
|
||||
> `standard` *`disabled`*\
|
||||
> **Disabled**: when questionary is not set in "[Select for user_data](#step.user_data)"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **<a id="questionary.mandatory" name="questionary.mandatory">questionary.mandatory</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory`<br/>**Command line**: <br/>• <a id="questionary.mandatory" name="questionary.mandatory">--questionary.mandatory</a>, -qm<br/>• <a id="questionary.mandatory" name="questionary.mandatory">--questionary.no-mandatory</a>, -nqm<br/>**Environment variable**: <a id="questionary.mandatory" name="questionary.mandatory">ROUGAILCLI_QUESTIONARY.MANDATORY</a> | Ask values only for mandatories variables without any value.<br/>**Default**: false |
|
||||
| **<a id="questionary.show_secrets" name="questionary.show_secrets">questionary.show_secrets</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory`<br/>**Command line**: <br/>• <a id="questionary.show_secrets" name="questionary.show_secrets">--questionary.show_secrets</a>, -qs<br/>• <a id="questionary.show_secrets" name="questionary.show_secrets">--questionary.no-show_secrets</a>, -nqs<br/>**Environment variable**: <a id="questionary.show_secrets" name="questionary.show_secrets">ROUGAILCLI_QUESTIONARY.SHOW_SECRETS</a> | Show secrets instead of obscuring them.<br/>**Default**: false |
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2025-11-26 20:48+0100\n"
|
||||
"PO-Revision-Date: 2025-11-26 20:48+0100\n"
|
||||
"POT-Creation-Date: 2025-11-27 21:49+0100\n"
|
||||
"PO-Revision-Date: 2025-11-27 21:49+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
|
|
@ -17,25 +17,29 @@ msgstr ""
|
|||
"X-Generator: Poedit 3.8\n"
|
||||
|
||||
#: src/rougail/user_data_questionary/config.py:32
|
||||
msgid "Define values interactivly"
|
||||
msgstr "Définir des valeurs interactivement"
|
||||
msgid "Define user datas interactivly"
|
||||
msgstr "Définir des données utilisateur interactivement"
|
||||
|
||||
#: src/rougail/user_data_questionary/config.py:40
|
||||
#: src/rougail/user_data_questionary/config.py:38
|
||||
msgid "when questionary is not set in \"step.user_data\""
|
||||
msgstr "lorsque questionary n'est pas mis dans step.user_data"
|
||||
|
||||
#: 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:45
|
||||
#: src/rougail/user_data_questionary/config.py:46
|
||||
msgid "Show secrets instead of obscuring them"
|
||||
msgstr "Afficher les secrets plutôt que des obscurcir"
|
||||
msgstr "Afficher les secrets plutôt que de les obscurcir"
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:59
|
||||
#: src/rougail/user_data_questionary/data.py:61
|
||||
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:226
|
||||
msgid "Value must not be empty"
|
||||
msgstr "La valeur ne doit pas être vide"
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:235
|
||||
#: src/rougail/user_data_questionary/data.py:229
|
||||
msgid "Not a valid {0}"
|
||||
msgstr "N'est pas un valide {0}"
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:250
|
||||
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-11-26 20:48+0100\n"
|
||||
"POT-Creation-Date: 2025-11-27 21:50+0100\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"
|
||||
|
|
@ -16,26 +16,30 @@ msgstr ""
|
|||
|
||||
|
||||
#: src/rougail/user_data_questionary/config.py:32
|
||||
msgid "Define values interactivly"
|
||||
msgid "Define user datas interactivly"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_questionary/config.py:40
|
||||
#: src/rougail/user_data_questionary/config.py:38
|
||||
msgid "when questionary is not set in \"step.user_data\""
|
||||
msgstr ""
|
||||
|
||||
#: 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:45
|
||||
#: src/rougail/user_data_questionary/config.py:46
|
||||
msgid "Show secrets instead of obscuring them"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:59
|
||||
#: src/rougail/user_data_questionary/data.py:61
|
||||
msgid "questionary is not set in step.user_data"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:226
|
||||
msgid "Value must not be empty"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:235
|
||||
#: src/rougail/user_data_questionary/data.py:229
|
||||
msgid "Not a valid {0}"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_questionary/data.py:250
|
||||
msgid "Value must not be empty"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -29,12 +29,13 @@ def get_rougail_config(
|
|||
"""generate rougail config"""
|
||||
options = f"""
|
||||
questionary:
|
||||
description: {_("Define values interactivly")}
|
||||
description: {_("Define user datas interactivly")}
|
||||
disabled:
|
||||
jinja: |
|
||||
{{% if step.user_data is not propertyerror and 'questionary' not in step.user_data %}}
|
||||
disabled
|
||||
{{% endif %}}
|
||||
description: {_('when questionary is not set in "step.user_data"')}
|
||||
|
||||
mandatory:
|
||||
description: {_("Ask values only for mandatories variables without any value")}
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ class RougailUserDataQuestionary:
|
|||
return text
|
||||
|
||||
def _display_questionary_frozen(self, args: str, default: any) -> None:
|
||||
qprint(" " + args + str(default))
|
||||
qprint(" " + args + " " + str(default))
|
||||
|
||||
|
||||
class RougailValidator(Validator):
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue