mirror of
https://github.com/restic/restic.git
synced 2026-10-08 11:27:12 +00:00
snapshots: also show snapshot size in compact view
This commit is contained in:
1 parent
b71a885b92
commit
f980f5647e
2 files changed
+4
No files matched your search
@@ -190,6 +190,9 @@ func PrintSnapshots(stdout io.Writer, list restic.Snapshots, reasons []restic.Ke
|
||||
tab.AddColumn("Time", "{{ .Timestamp }}")
|
||||
tab.AddColumn("Host", "{{ .Hostname }}")
|
||||
tab.AddColumn("Tags ", `{{ join .Tags "\n" }}`)
|
||||
if hasSize {
|
||||
tab.AddColumn("Size", `{{ .Size }}`)
|
||||
}
|
||||
} else {
|
||||
tab.AddColumn("ID", "{{ .ID }}")
|
||||
tab.AddColumn("Time", "{{ .Timestamp }}")
|
||||
|
||||
Reference in new issue
Block a user