displaySnapshotsFields is a copy of displayJailsFields to pretty display jails snapshots
This commit is contained in:
@ -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)
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
Reference in New Issue
Block a user