gum/filter/options.go
Maas Lalani 02e925ea57
refactor: use embedded style struct for all lipgloss styling
This commit uses the embedded style struct for styling in all components. The most notable example is `gum write` where there are many styles that are used and composed for each component of the command.
2022-07-12 16:08:33 -04:00

16 lines
808 B
Go

package filter
import "github.com/charmbracelet/gum/style"
// Options is the customization options for the filter command.
type Options struct {
Indicator string `help:"Character for selection" default:"•"`
IndicatorStyle style.Styles `embed:"" prefix:"indicator." set:"defaultForeground=212" set:"name=indicator"`
TextStyle style.Styles `embed:"" prefix:"text."`
MatchStyle style.Styles `embed:"" prefix:"match." set:"defaultForeground=212" set:"name=matched text"`
Placeholder string `help:"Placeholder value" default:"Search..."`
Prompt string `help:"Prompt to display" default:"> "`
PromptStyle style.Styles `embed:"" prefix:"prompt." set:"defaultForeground=240" set:"name=prompt"`
Width int `help:"Input width" default:"20"`
}