William Petit
e66938f1d3
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
34 lines
945 B
Go
34 lines
945 B
Go
package layer
|
|
|
|
import (
|
|
"forge.cadoles.com/cadoles/bouncer/internal/format"
|
|
"forge.cadoles.com/cadoles/bouncer/internal/format/table"
|
|
)
|
|
|
|
func layerHeaderHints(outputMode format.OutputMode) format.Hints {
|
|
return format.Hints{
|
|
OutputMode: outputMode,
|
|
Props: []format.Prop{
|
|
format.NewProp("Name", "Name"),
|
|
format.NewProp("Type", "Type"),
|
|
format.NewProp("Enabled", "Enabled"),
|
|
format.NewProp("Weight", "Weight"),
|
|
},
|
|
}
|
|
}
|
|
|
|
func layerHints(outputMode format.OutputMode) format.Hints {
|
|
return format.Hints{
|
|
OutputMode: outputMode,
|
|
Props: []format.Prop{
|
|
format.NewProp("Name", "Name"),
|
|
format.NewProp("Type", "Type"),
|
|
format.NewProp("Enabled", "Enabled"),
|
|
format.NewProp("Weight", "Weight"),
|
|
format.NewProp("Options", "Options"),
|
|
format.NewProp("CreatedAt", "CreatedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
format.NewProp("UpdatedAt", "UpdatedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
},
|
|
}
|
|
}
|