Compare commits

..

3 commits

Author SHA1 Message Date
fenris eddae51d27 [add] conf:v7 [mod] custom strings 2025-07-19 12:00:38 +02:00
Christian Fraß 49b8b4189e [task-343] 2025-07-01 17:04:41 +00:00
fenris af7f65c29c [task-343] [int] 2025-07-01 12:06:08 +02:00
7 changed files with 1027 additions and 92 deletions

1
.gitignore vendored
View file

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

View file

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

View file

@ -15,7 +15,7 @@
"core.reminder.reminder": "reminder",
"args.action.description": "what to do",
"args.conf_path.description": "path to configuration file",
"args.conf_schema.description": "only print the configuration schema",
"args.conf_schema.description": "only print the configuration schema in a specific version (latest version via argument '{{arg}}')",
"args.conf_expose.description": "whether to expose the full configuration",
"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)",

File diff suppressed because it is too large Load diff

View file

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

View file

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