Implement --json - JSON mode output.

This commit is contained in:
Dianne Skoll
2025-08-11 20:16:22 -04:00
parent 1cdd9531a5
commit 9d6ce5b674
6 changed files with 106 additions and 8 deletions

View File

@@ -436,7 +436,7 @@ void HandleQueuedReminders(void)
if (DaemonJSON) {
DynamicBuffer out;
DBufInit(&out);
(void) TriggerReminder(&p, &tcopy, &q->tt, DSEToday, 1, &out);
(void) TriggerReminder(&p, &tcopy, &q->tt, DSEToday, 1, &out, NULL, NULL, NULL);
if (q->typ != RUN_TYPE) {
printf("\"body\":\"");
chomp(&out);
@@ -445,7 +445,7 @@ void HandleQueuedReminders(void)
}
DBufFree(&out);
} else {
(void) TriggerReminder(&p, &tcopy, &q->tt, DSEToday, 1, NULL);
(void) TriggerReminder(&p, &tcopy, &q->tt, DSEToday, 1, NULL, NULL, NULL, NULL);
}
if (IsServerMode() && !DaemonJSON && q->typ != RUN_TYPE) {
printf("NOTE endreminder\n");