fix: disable config if bitwarden is not selected
This commit is contained in:
parent
495b54dd0f
commit
2f50351b9d
4 changed files with 75 additions and 52 deletions
|
|
@ -5,8 +5,8 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2025-04-09 14:13+0200\n"
|
||||
"PO-Revision-Date: 2025-04-09 14:14+0200\n"
|
||||
"POT-Creation-Date: 2025-11-05 08:24+0100\n"
|
||||
"PO-Revision-Date: 2025-11-05 08:24+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
|
|
@ -14,82 +14,88 @@ 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.5\n"
|
||||
"X-Generator: Poedit 3.7\n"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:52
|
||||
#: src/rougail/user_data_bitwarden/config.py:46
|
||||
msgid "Configuration rougail-user-data-bitwarden"
|
||||
msgstr "Configuration de rougail-user-data-bitwarden"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/config.py:54
|
||||
msgid "Application used to retrieve secrets"
|
||||
msgstr "Application utilisé pour récupérer des secrets"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:53
|
||||
msgid "\"bitwarden\" is not set in step.user_data"
|
||||
msgstr "\"bitwarden\" n'est pas dans step.user_data"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:74
|
||||
#: src/rougail/user_data_bitwarden/data.py:75
|
||||
msgid "\"rbw\" or \"bw\""
|
||||
msgstr "\"rbw\" ou \"bw\""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:76
|
||||
#: src/rougail/user_data_bitwarden/data.py:77
|
||||
msgid "\"{0}\""
|
||||
msgstr "\"{0}\""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:78
|
||||
#: src/rougail/user_data_bitwarden/data.py:80
|
||||
msgid "please unlock Bitwarden password database with {0}"
|
||||
msgstr ""
|
||||
"veuillez déverrouiller la base de donnée de mot de passe Bitwarden avec {0}"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:79
|
||||
#: src/rougail/user_data_bitwarden/data.py:85
|
||||
msgid "cannot find Bitwarden command {0} please install it"
|
||||
msgstr "ne peut trouver la commande Bitwarden {0} veuillez l'installer"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:153
|
||||
msgid ""
|
||||
"the value for \"{0}\" at index {1} is already set while it should be filled "
|
||||
"in by Bitwarden"
|
||||
msgstr ""
|
||||
"la valeur de \"{0}\" à l'index {1} est déjà renseigné alors que celle doit "
|
||||
"devrait être renseigné par Bitwarden"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:155
|
||||
msgid ""
|
||||
"the value for \"{0}\" is already set while it should be filled in by "
|
||||
"Bitwarden"
|
||||
msgstr ""
|
||||
"la valeur de \"{0}\" est déjà renseignée alors que celle doit devrait être "
|
||||
"renseignée par Bitwarden"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:185
|
||||
#: src/rougail/user_data_bitwarden/data.py:163
|
||||
msgid "the default value for \"{0}\" must be the Bitwarden item name"
|
||||
msgstr ""
|
||||
"la valeur par défaut pour \"{0}\" doit être un nom d'élément de Bitwarden"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:198
|
||||
#: src/rougail/user_data_bitwarden/data.py:186
|
||||
msgid "cannot execute the \"{0}\" commandline from Bitwarden for \"{1}\": {2}"
|
||||
msgstr ""
|
||||
"ne peut exécuter la ligne de commande \"{0}\" pour Bitwarden pour \"{1}\": "
|
||||
"{2}"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:201
|
||||
#: src/rougail/user_data_bitwarden/data.py:195
|
||||
msgid "item \"{0}\" in Bitwarden is not found for \"{1}\""
|
||||
msgstr "l'élément \"{0}\" dans Bitwarden n'est pas trouvé pour \"{1}\""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:208
|
||||
#: src/rougail/user_data_bitwarden/data.py:210
|
||||
msgid "several items found with name \"{0}\" in Bitwarden for \"{1}\": \"{2}\""
|
||||
msgstr ""
|
||||
"plusieurs éléments trouvés avec le nom \"{0}\" dans Bitwarden pour \"{1}\": "
|
||||
"\"{2}\""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:219
|
||||
#: src/rougail/user_data_bitwarden/data.py:229
|
||||
msgid "unexpected datas \"{0}\" from Bitwarden for \"{1}\": {2}"
|
||||
msgstr "données inattendues \"{0}\" pour Bitwarden pour \"{1}\": {2}"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:224
|
||||
#: src/rougail/user_data_bitwarden/data.py:237
|
||||
msgid "password"
|
||||
msgstr "de mot de passe"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:226
|
||||
#: src/rougail/user_data_bitwarden/data.py:239
|
||||
msgid "username"
|
||||
msgstr "de nom d'utilisateur"
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:227
|
||||
#: src/rougail/user_data_bitwarden/data.py:241
|
||||
msgid "item \"{0}\" in Bitwarden has no {1} for \"{2}\""
|
||||
msgstr "l'élément \"{0}\" dans Bitwarden n'a pas {1} for \"{2}\""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "the value for \"{0}\" at index {1} is already set while it should be "
|
||||
#~ "filled in by Bitwarden"
|
||||
#~ msgstr ""
|
||||
#~ "la valeur de \"{0}\" à l'index {1} est déjà renseigné alors que celle "
|
||||
#~ "doit devrait être renseigné par Bitwarden"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "the value for \"{0}\" is already set while it should be filled in by "
|
||||
#~ "Bitwarden"
|
||||
#~ msgstr ""
|
||||
#~ "la valeur de \"{0}\" est déjà renseignée alors que celle doit devrait "
|
||||
#~ "être renseignée par Bitwarden"
|
||||
|
||||
#~ msgid "cannot find {0} \"{1}\" from Bitwarden for \"{2}\""
|
||||
#~ msgstr "ne peut trouver {0} \"{1}\" pour Bitwarden pour \"{2}\""
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2025-10-05 21:30+0200\n"
|
||||
"POT-Creation-Date: 2025-11-05 08:24+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"
|
||||
|
|
@ -15,55 +15,63 @@ msgstr ""
|
|||
"Generated-By: pygettext.py 1.5\n"
|
||||
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:54
|
||||
#: src/rougail/user_data_bitwarden/config.py:46
|
||||
msgid "Configuration rougail-user-data-bitwarden"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/config.py:54
|
||||
msgid "Application used to retrieve secrets"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:53
|
||||
msgid "\"bitwarden\" is not set in step.user_data"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:76
|
||||
#: src/rougail/user_data_bitwarden/data.py:75
|
||||
msgid "\"rbw\" or \"bw\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:78
|
||||
#: src/rougail/user_data_bitwarden/data.py:77
|
||||
msgid "\"{0}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:81
|
||||
#: src/rougail/user_data_bitwarden/data.py:80
|
||||
msgid "please unlock Bitwarden password database with {0}"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:86
|
||||
#: src/rougail/user_data_bitwarden/data.py:85
|
||||
msgid "cannot find Bitwarden command {0} please install it"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:202
|
||||
#: src/rougail/user_data_bitwarden/data.py:163
|
||||
msgid "the default value for \"{0}\" must be the Bitwarden item name"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:225
|
||||
#: src/rougail/user_data_bitwarden/data.py:186
|
||||
msgid "cannot execute the \"{0}\" commandline from Bitwarden for \"{1}\": {2}"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:234
|
||||
#: src/rougail/user_data_bitwarden/data.py:195
|
||||
msgid "item \"{0}\" in Bitwarden is not found for \"{1}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:249
|
||||
#: src/rougail/user_data_bitwarden/data.py:210
|
||||
msgid "several items found with name \"{0}\" in Bitwarden for \"{1}\": \"{2}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:268
|
||||
#: src/rougail/user_data_bitwarden/data.py:229
|
||||
msgid "unexpected datas \"{0}\" from Bitwarden for \"{1}\": {2}"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:276
|
||||
#: src/rougail/user_data_bitwarden/data.py:237
|
||||
msgid "password"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:278
|
||||
#: src/rougail/user_data_bitwarden/data.py:239
|
||||
msgid "username"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/user_data_bitwarden/data.py:280
|
||||
#: src/rougail/user_data_bitwarden/data.py:241
|
||||
msgid "item \"{0}\" in Bitwarden has no {1} for \"{2}\""
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -19,30 +19,39 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
"""
|
||||
|
||||
from .i18n import _
|
||||
|
||||
|
||||
def get_rougail_config(
|
||||
*,
|
||||
backward_compatibility=True,
|
||||
) -> dict:
|
||||
options = """
|
||||
options = f"""
|
||||
step:
|
||||
|
||||
structural:
|
||||
redefine: true
|
||||
default:
|
||||
jinja: |-
|
||||
{% if step.user_data is not propertyerror and 'bitwarden' in step.user_data %}
|
||||
{{% if step.user_data is not propertyerror and 'bitwarden' in step.user_data %}}
|
||||
bitwarden
|
||||
{% endif %}
|
||||
{% if step.user_data is not propertyerror and 'risotto' in step.user_data %}
|
||||
{{% endif %}}
|
||||
{{% if step.user_data is not propertyerror and 'risotto' in step.user_data %}}
|
||||
risotto
|
||||
{% else %}
|
||||
{{% else %}}
|
||||
directory
|
||||
{% endif %}
|
||||
{{% endif %}}
|
||||
|
||||
bitwarden:
|
||||
description: {_("Configuration rougail-user-data-bitwarden")}
|
||||
disabled:
|
||||
jinja: |
|
||||
{{% if step.user_data is propertyerror or 'bitwarden' not in step.user_data %}}
|
||||
disabled
|
||||
{{% endif %}}
|
||||
|
||||
command:
|
||||
description: {_("Application used to retrieve secrets")}
|
||||
choices:
|
||||
- rbw
|
||||
- bw
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue