22 lines
663 B
Go
22 lines
663 B
Go
package agent
|
|
|
|
import (
|
|
"gitlab.com/wpetit/goweb/cli/format"
|
|
"gitlab.com/wpetit/goweb/cli/format/table"
|
|
)
|
|
|
|
func agentHints(outputMode format.OutputMode) format.Hints {
|
|
return format.Hints{
|
|
OutputMode: outputMode,
|
|
Props: []format.Prop{
|
|
format.NewProp("ID", "ID"),
|
|
format.NewProp("TenantID", "Tenant", table.WithCompactModeMaxColumnWidth(8)),
|
|
format.NewProp("Label", "Label"),
|
|
format.NewProp("Thumbprint", "Thumbprint"),
|
|
format.NewProp("Status", "Status"),
|
|
format.NewProp("ContactedAt", "ContactedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
format.NewProp("UpdatedAt", "UpdatedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
},
|
|
}
|
|
}
|