William Petit
3c1939f418
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
36 lines
1001 B
Go
36 lines
1001 B
Go
package layer
|
|
|
|
import (
|
|
"gitlab.com/wpetit/goweb/cli/format"
|
|
"gitlab.com/wpetit/goweb/cli/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"),
|
|
format.NewProp("Revision", "Revision"),
|
|
},
|
|
}
|
|
}
|
|
|
|
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("Revision", "Revision"),
|
|
format.NewProp("Options", "Options"),
|
|
format.NewProp("CreatedAt", "CreatedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
format.NewProp("UpdatedAt", "UpdatedAt", table.WithCompactModeMaxColumnWidth(20)),
|
|
},
|
|
}
|
|
}
|