displaySnapshotsFields is a copy of displayJailsFields to pretty display jails snapshots

This commit is contained in:
yo
2022-04-04 19:47:15 +02:00
parent 1c40e29eff
commit 7b34495cf6
3 changed files with 215 additions and 5 deletions

View File

@ -80,7 +80,8 @@ func listJailSnapshots(jail Jail) {
SnapshotsOrderedBy(ss.CreationInc).Sort(snapshots)
// TODO : Pretty display. Make an interface of displayStructFields?
for _, s := range snapshots {
displaySnapshotsFields(snapshots, []string{"Name","Creation","Referenced","Used"})
/*for _, s := range snapshots {
fmt.Printf("| %s | %s | %s | %s |\n", s.Name, s.Creation.String(), s.Referenced, s.Used)
}
}*/
}