quak backup: print the date and time a run starts and finishes (closes #245)
check / check (push) Waiting to run
check / check (push) Waiting to run
Adds a `Started at` line after `Starting backup...` and a `Finished at` line after `--- Backup complete ---`, in local time with the UTC offset. No existing line changes. The clock comes in through `CliContext.now`. The README's crontab now pipes the output to `logger`, which adds its own time to each line; appending to a file remains as the alternative. Model: opus-5-5
This commit was merged in pull request #256.
This commit is contained in:
1 parent
2492946e9d
commit
ecdd90b0a8
6 files changed
+124
-19
No files matched your search
@@ -319,6 +319,7 @@ const context = (ente: FakeEnte): CliContext => {
|
||||
promptSecret: async () => {
|
||||
throw new Error("prompt not expected");
|
||||
},
|
||||
now: () => new Date(Date.UTC(2026, 10, 11, 2, 30)),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user