docs: group style flags so that they appear at the bottom

This commit is contained in:
Maas Lalani 2022-07-12 22:48:44 -04:00
parent 7190822247
commit 912157521c
No known key found for this signature in database
GPG Key ID: 5A6ED5CBF1A0A000

View File

@ -9,26 +9,26 @@ import (
// It corresponds to the available options in the lipgloss.Style struct.
type Styles struct {
// Colors
Background string `help:"Background color of the ${name=element}" default:"${defaultBackground}" hidden:""`
Foreground string `help:"color of the ${name=element}" default:"${defaultForeground}"`
Background string `help:"Background color of the ${name=element}" default:"${defaultBackground}" hidden:"" group:"Style Flags"`
Foreground string `help:"color of the ${name=element}" default:"${defaultForeground}" group:"Style Flags"`
// Border
Border string `help:"Border style to apply" enum:"none,hidden,normal,rounded,thick,double" default:"none" hidden:""`
BorderBackground string `help:"Border background color" hidden:""`
BorderForeground string `help:"Border foreground color" hidden:""`
Border string `help:"Border style to apply" enum:"none,hidden,normal,rounded,thick,double" default:"none" hidden:"" group:"Style Flags"`
BorderBackground string `help:"Border background color" hidden:"" group:"Style Flags"`
BorderForeground string `help:"Border foreground color" hidden:"" group:"Style Flags"`
// Layout
Align string `help:"Text alignment" enum:"left,center,right,bottom,middle,top" default:"left" hidden:""`
Height int `help:"Height of output" hidden:""`
Width int `help:"Width of output" hidden:""`
Margin string `help:"Margin to apply around the text." default:"0 0" hidden:""`
Align string `help:"Text alignment" enum:"left,center,right,bottom,middle,top" default:"left" hidden:"" group:"Style Flags"`
Height int `help:"Height of output" hidden:"" group:"Style Flags"`
Width int `help:"Width of output" hidden:"" group:"Style Flags"`
Margin string `help:"Margin to apply around the text." default:"0 0" hidden:"" group:"Style Flags"`
Padding string `help:"Padding to apply around the text." default:"0 0" hidden:""`
// Format
Bold bool `help:"Apply bold formatting" hidden:""`
Faint bool `help:"Apply faint formatting" hidden:""`
Italic bool `help:"Apply italic formatting" hidden:""`
Strikethrough bool `help:"Apply strikethrough formatting" hidden:""`
Bold bool `help:"Apply bold formatting" hidden:"" group:"Style Flags"`
Faint bool `help:"Apply faint formatting" hidden:"" group:"Style Flags"`
Italic bool `help:"Apply italic formatting" hidden:"" group:"Style Flags"`
Strikethrough bool `help:"Apply strikethrough formatting" hidden:"" group:"Style Flags"`
}
// ToLipgloss takes a Styles flag set and returns the corresponding