gum/filter/options.go

18 lines
830 B
Go
Raw Normal View History

package filter
import "github.com/charmbracelet/gum/style"
// Options is the customization options for the filter command.
// nolint:staticcheck
type Options struct {
Indicator string `help:"Character for selection" default:"•"`
2022-08-03 18:28:02 +02:00
IndicatorStyle style.Styles `embed:"" prefix:"indicator." set:"defaultForeground=212"`
TextStyle style.Styles `embed:"" prefix:"text."`
2022-08-03 18:28:02 +02:00
MatchStyle style.Styles `embed:"" prefix:"match." set:"defaultForeground=212"`
Placeholder string `help:"Placeholder value" default:"Filter..."`
Prompt string `help:"Prompt to display" default:"> "`
2022-08-03 18:28:02 +02:00
PromptStyle style.Styles `embed:"" prefix:"prompt." set:"defaultForeground=240"`
Width int `help:"Input width" default:"20"`
Height int `help:"Input height" default:"0"`
}