gum/input/options.go

12 lines
454 B
Go

package input
// Options are the customization options for the input.
type Options struct {
CursorColor string `help:"Color of prompt" default:"212"`
Placeholder string `help:"Placeholder value" default:"Type something..."`
Prompt string `help:"Prompt to display" default:"> "`
PromptColor string `help:"Color of prompt" default:"7"`
Value string `help:"Initial value" default:""`
Width int `help:"Input width" default:"20"`
}