Reorder to silenced list columns in sensuctl
@@ -68,45 +68,45 @@ func printToTable(results interface{}, writer io.Writer) {
},
},
{
- Title: "Expire",
+ Title: "Subscription",
CellTransformer: func(data interface{}) string {
silenced, _ := data.(types.Silenced)
- return (time.Duration(silenced.Expire) * time.Second).String()
+ return silenced.Subscription
},
},
{
- Title: "ExpireOnResolve",
+ Title: "Check",
CellTransformer: func(data interface{}) string {
silenced, _ := data.(types.Silenced)
- return globals.BooleanStyleP(silenced.ExpireOnResolve)
+ return silenced.Check
},
},
{
- Title: "Creator",
+ Title: "Expire",
CellTransformer: func(data interface{}) string {
silenced, _ := data.(types.Silenced)
- return silenced.Creator
+ return (time.Duration(silenced.Expire) * time.Second).String()
},
},
{
- Title: "Check",
+ Title: "ExpireOnResolve",
CellTransformer: func(data interface{}) string {
silenced, _ := data.(types.Silenced)
- return silenced.Check
+ return globals.BooleanStyleP(silenced.ExpireOnResolve)
},
},
{
- Title: "Reason",
+ Title: "Creator",
CellTransformer: func(data interface{}) string {
silenced, _ := data.(types.Silenced)
- return silenced.Reason
+ return silenced.Creator
},
},
{
- Title: "Subscription",
+ Title: "Reason",
CellTransformer: func(data interface{}) string {
silenced, _ := data.(types.Silenced)
- return silenced.Subscription
+ return silenced.Reason
},
},
{
