diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-01-16 17:43:35 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-01-16 18:00:11 +0200 |
commit | dc241ec8d5bbc88d1a4290d832b98b3a3969e3cc (patch) | |
tree | a6fa8bd9e6101466f8e50adb1970a61a7c178309 /src/backup_progress.rs | |
parent | 5837d8a8c56cd06a71696ab1152e92d7c1464c57 (diff) | |
download | obnam2-dc241ec8d5bbc88d1a4290d832b98b3a3969e3cc.tar.gz |
feat: backup run now ends with a summary
"obnam backup" now writes a summary like the following at the end:
status: OK
duration: 24
file-count: 119245
generation-id: ef353c79-a94f-4903-bd80-e741ea454c84
We can add more fields to that later, as needed and requested. This
was the data that's easily at hand.
Diffstat (limited to 'src/backup_progress.rs')
-rw-r--r-- | src/backup_progress.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backup_progress.rs b/src/backup_progress.rs index d65f104..6c1d3e6 100644 --- a/src/backup_progress.rs +++ b/src/backup_progress.rs @@ -41,5 +41,6 @@ impl BackupProgress { pub fn finish(&self) { self.progress.set_length(self.progress.position()); + self.progress.finish_and_clear(); } } |