Cleaning + TODO: PRetty display of snapshot list
This commit is contained in:
		@ -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)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user