Compare commits

..

6 commits

Author SHA1 Message Date
fenris 4d2b20f0b4 [mod] custom strings 2025-07-19 12:26:02 +02:00
Christian Fraß 06b220dd27 [mod] test-Daten verschoben 2025-07-01 17:36:23 +00:00
Christian Fraß ab3bfad376 [task-153] [fix] 2025-07-01 17:34:38 +00:00
Christian Fraß 3fa5d0820b [task-153] 2025-07-01 17:19:47 +00:00
Christian Fraß e366410d61 [mod] gitignore 2025-07-01 17:07:06 +00:00
fenris 1fe6b75b4e Zeichenketten auslagern (#2)
Siehe https://vikunja.ramsch.sx/tasks/343

Co-authored-by: Christian Fraß <roydfalk@folksprak.org>
Reviewed-on: #2
Co-authored-by: Fenris Wolf <fenris@folksprak.org>
Co-committed-by: Fenris Wolf <fenris@folksprak.org>
2025-07-01 19:05:51 +02:00
7 changed files with 92 additions and 1027 deletions

1
.gitignore vendored
View file

@ -1,4 +1,3 @@
/build/ /build/
/temp/ /temp/
/conf/
/.geany /.geany

View file

@ -15,7 +15,7 @@
"core.reminder.reminder": "Erinnerung", "core.reminder.reminder": "Erinnerung",
"args.action.description": "auszuführende Aktion", "args.action.description": "auszuführende Aktion",
"args.conf_path.description": "Pfad zur Konfigurations-Datei", "args.conf_path.description": "Pfad zur Konfigurations-Datei",
"args.conf_schema.description": "nur das Konfigurations-Schema in einer spezifischen Version ausgeben (jüngste Version mittels '{{arg}}')", "args.conf_schema.description": "nur das Konfigurations-Schema ausgeben",
"args.conf_expose.description": "die vervollständigte Konfiguration ausgeben", "args.conf_expose.description": "die vervollständigte Konfiguration ausgeben",
"args.single_run.description": "nur einen Durchlauf ausführen", "args.single_run.description": "nur einen Durchlauf ausführen",
"args.dry_run.description": "das Senden von Benachrichtigungen überspringen", "args.dry_run.description": "das Senden von Benachrichtigungen überspringen",

View file

@ -15,7 +15,7 @@
"core.reminder.reminder": "reminder", "core.reminder.reminder": "reminder",
"args.action.description": "what to do", "args.action.description": "what to do",
"args.conf_path.description": "path to configuration file", "args.conf_path.description": "path to configuration file",
"args.conf_schema.description": "only print the configuration schema in a specific version (latest version via argument '{{arg}}')", "args.conf_schema.description": "only print the configuration schema",
"args.conf_expose.description": "whether to expose the full configuration", "args.conf_expose.description": "whether to expose the full configuration",
"args.single_run.description": "whether to only execute one iteration at run", "args.single_run.description": "whether to only execute one iteration at run",
"args.dry_run.description": "whether to skip the sending of reminders (logs will be written)", "args.dry_run.description": "whether to skip the sending of reminders (logs will be written)",

File diff suppressed because it is too large Load diff

View file

@ -80,15 +80,10 @@ namespace _munin
"conf_schema": lib_plankton.args.class_argument.volatile({ "conf_schema": lib_plankton.args.class_argument.volatile({
"indicators_long": ["conf-schema"], "indicators_long": ["conf-schema"],
"indicators_short": ["s"], "indicators_short": ["s"],
"type": lib_plankton.args.enum_type.string, "type": lib_plankton.args.enum_type.boolean,
"mode": lib_plankton.args.enum_mode.replace, "mode": lib_plankton.args.enum_mode.replace,
"default": "", "default": false,
"info": lib_plankton.string.coin( "info": lib_plankton.translate.get("args.conf_schema.description"),
lib_plankton.translate.get("args.conf_schema.description"),
{
"arg": "_",
}
),
"name": "conf-schema", "name": "conf-schema",
}), }),
"conf_expose": lib_plankton.args.class_argument.volatile({ "conf_expose": lib_plankton.args.class_argument.volatile({
@ -155,10 +150,10 @@ namespace _munin
); );
} }
else { else {
if (args.conf_schema !== "") { if (args.conf_schema) {
process.stdout.write( process.stdout.write(
lib_plankton.json.encode( lib_plankton.json.encode(
_munin.conf.schema((args.conf_schema === "_") ? undefined : args.conf_schema), _munin.conf.schema_extended(),
{ {
"formatted": true, "formatted": true,
} }

View file

@ -67,7 +67,7 @@ namespace _munin.test
type_output type_output
> >
> = await _munin.helpers.test.get_data<type_input, type_output>( > = await _munin.helpers.test.get_data<type_input, type_output>(
"data/reminder_check.testdata.json", "data/test/reminder_check.testdata.json",
{ {
} }
); );