deduplicate string formatting of snapshot metadata

This removes the spurious ")" bracket at the end and normalizes the
metadata format used by the `ls` command.
This commit is contained in:
Michael Eischer committed 2024-01-06 20:20:51 +01:00
1 parent 045aa64558
commit 33b7c84a7a
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ func ForAllSnapshots(ctx context.Context, be Lister, loader LoaderUnpacked, excl
}
func (sn Snapshot) String() string {
return fmt.Sprintf("<Snapshot %s of %v at %s by %s@%s>",
return fmt.Sprintf("snapshot %s of %v at %s by %s@%s",
sn.id.Str(), sn.Paths, sn.Time, sn.Username, sn.Hostname)
}