displaySnapshotsFields is a copy of displayJailsFields to pretty display jails snapshots
This commit is contained in:
1 parent
1c40e29eff
commit
7b34495cf6
3 files changed
+215
-5
No files matched your search
+3
-2
@@ -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