William Petit
3c1939f418
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
35 lines
956 B
Go
35 lines
956 B
Go
package proxy
|
|
|
|
import (
|
|
"gitlab.com/wpetit/goweb/cli/format"
|
|
"gitlab.com/wpetit/goweb/cli/format/table"
|
|
)
|
|
|
|
func proxyHeaderHints(outputMode format.OutputMode) format.Hints {
|
|
return format.Hints{
|
|
OutputMode: outputMode,
|
|
Props: []format.Prop{
|
|
format.NewProp("Name", "Name"),
|
|
format.NewProp("Enabled", "Enabled"),
|
|
format.NewProp("Weight", "Weight"),
|
|
format.NewProp("Revision", "Revision"),
|
|
},
|
|
}
|
|
}
|
|
|
|
func proxyHints(outputMode format.OutputMode) format.Hints {
|
|
return format.Hints{
|
|
OutputMode: outputMode,
|
|
Props: []format.Prop{
|
|
format.NewProp("Name", "Name"),
|
|
format.NewProp("From", "From"),
|
|
format.NewProp("To", "To"),
|
|
format.NewProp("Enabled", "Enabled"),
|
|
format.NewProp("Weight", "Weight"),
|
|
format.NewProp("Revision", "Revision"),
|
|
format.NewProp("CreatedAt", "CreatedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
format.NewProp("UpdatedAt", "UpdatedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
},
|
|
}
|
|
}
|