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
2024-01-06 20:19:17 +01:00
parent 045aa64558
commit 33b7c84a7a
5 changed files with 6 additions and 6 deletions

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)
}