gum/filter/options.go
Christian Muehlhaeuser 66993d8ef1
Add soft & hard linter configs & workflows (#44)
* chore: add linter configs & workflows

* fix: ignore certain linter warnings

* fix: mark errors as intentionally ignored

* fix: avoid unnecessary conversion

* fix: handle template/renderer errors

* fix: mark intentionally unused code
2022-07-30 12:32:59 -04:00

17 lines
830 B
Go

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:"•"`
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:"Filter..."`
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"`
}