Compare commits

...

2 commits

Author SHA1 Message Date
Christian Fraß 9e698560fd [mod] Kommandozeilen-Argument-Beschreibung für dry-run-Schalter 2025-06-12 05:39:33 +00:00
Christian Fraß a824b97626 [mod] Termin-Beschreibung mit anzeigen 2025-06-12 05:25:15 +00:00
5 changed files with 29 additions and 3 deletions

View file

@ -230,7 +230,7 @@ namespace _munin
"type": lib_plankton.args.enum_type.boolean,
"mode": lib_plankton.args.enum_mode.replace,
"default": false,
"info": "whether to not skip the sending of reminders (logs will be written)",
"info": "whether to skip the sending of reminders (logs will be written)",
"name": "dry-run",
}),
"help": lib_plankton.args.class_argument.volatile({

View file

@ -125,6 +125,7 @@ namespace _munin.sources.ical_feed
"title": vevent.summary,
"begin": begin,
"end": end,
"description": (vevent.description ?? null),
"location": (vevent.location ?? null),
"tags": vevent.categories,
};

View file

@ -73,7 +73,7 @@ namespace _munin.targets.email
}
),
lib_plankton.string.coin(
"{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}",
"{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}{{macro_description}}",
{
"title_label": labels.title.toUpperCase(),
"macro_tags": (
@ -105,6 +105,18 @@ namespace _munin.targets.email
}
)
),
"macro_description": (
(event.description === null)
?
""
:
lib_plankton.string.coin(
"\n\n{{description_value}}",
{
"description_value": event.description,
}
)
),
}
)
);

View file

@ -43,7 +43,7 @@ namespace _munin.targets.telegram_bot
parameters.bot_token,
parameters.chat_id,
lib_plankton.string.coin(
"*{{head}}*\n\n\{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}",
"*{{head}}*\n\n\{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}{{macro_description}}",
{
"head": labels.head,
"macro_tags": (
@ -76,6 +76,18 @@ namespace _munin.targets.telegram_bot
}
)
),
"macro_description": (
(event.description === null)
?
""
:
lib_plankton.string.coin(
"\n\n{{description_value}}",
{
"description_value": event.description,
}
)
),
}
),
{

View file

@ -37,6 +37,7 @@ namespace _munin
title : string;
begin : lib_plankton.pit.type_datetime,
end : (null | lib_plankton.pit.type_datetime),
description : (null | string);
location : (null | string);
tags : (null | Array<string>);
};