2023-03-02 13:05:24 +01:00
|
|
|
package agent
|
|
|
|
|
2024-02-26 18:20:40 +01:00
|
|
|
import (
|
|
|
|
"gitlab.com/wpetit/goweb/cli/format"
|
|
|
|
"gitlab.com/wpetit/goweb/cli/format/table"
|
|
|
|
)
|
2023-03-02 13:05:24 +01:00
|
|
|
|
|
|
|
func agentHints(outputMode format.OutputMode) format.Hints {
|
|
|
|
return format.Hints{
|
|
|
|
OutputMode: outputMode,
|
|
|
|
Props: []format.Prop{
|
|
|
|
format.NewProp("ID", "ID"),
|
2023-04-01 13:28:18 +02:00
|
|
|
format.NewProp("Label", "Label"),
|
2023-03-02 13:05:24 +01:00
|
|
|
format.NewProp("Thumbprint", "Thumbprint"),
|
|
|
|
format.NewProp("Status", "Status"),
|
2024-02-26 18:20:40 +01:00
|
|
|
format.NewProp("ContactedAt", "ContactedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
|
|
format.NewProp("UpdatedAt", "UpdatedAt", table.WithCompactModeMaxColumnWidth(20)),
|
2023-03-02 13:05:24 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|