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