Cleaning + TODO: PRetty display of snapshot list

This commit is contained in:
yo 2022-04-03 14:30:14 +02:00
parent ef78245902
commit 1c40e29eff

View File

@ -51,8 +51,6 @@ func listJailSnapshots(jail Jail) {
return
}
fmt.Printf(out)
dateLayout := "Mon Jan _2 15:04 2006"
loc, _ := time.LoadLocation(gTimeZone)
@ -81,6 +79,7 @@ func listJailSnapshots(jail Jail) {
ss := initSnapshotSortStruct()
SnapshotsOrderedBy(ss.CreationInc).Sort(snapshots)
// TODO : Pretty display. Make an interface of displayStructFields?
for _, s := range snapshots {
fmt.Printf("| %s | %s | %s | %s |\n", s.Name, s.Creation.String(), s.Referenced, s.Used)
}