2022-07-26 21:43:26 +02:00
|
|
|
package confirm
|
|
|
|
|
|
|
|
import "github.com/charmbracelet/gum/style"
|
|
|
|
|
|
|
|
// Options is the customization options for the confirm command.
|
2022-07-30 18:32:59 +02:00
|
|
|
// nolint:staticcheck
|
2022-07-26 21:43:26 +02:00
|
|
|
type Options struct {
|
|
|
|
Affirmative string `help:"The title of the affirmative action" default:"Yes"`
|
|
|
|
Negative string `help:"The title of the negative action" default:"No"`
|
2022-07-29 17:48:37 +02:00
|
|
|
Default bool `help:"Default confirmation action" default:"true"`
|
2022-07-26 21:43:26 +02:00
|
|
|
Prompt string `arg:"" help:"Prompt to display." default:"Are you sure?"`
|
2022-08-03 23:43:32 +02:00
|
|
|
PromptStyle style.Styles `embed:"" prefix:"prompt." help:"The style of the prompt" set:"defaultMargin=1 0 0 0" envprefix:"GUM_CONFIRM_PROMPT_"`
|
|
|
|
SelectedStyle style.Styles `embed:"" prefix:"selected." help:"The style of the selected action" set:"defaultBackground=212" set:"defaultForeground=230" set:"defaultPadding=0 3" set:"defaultMargin=1 1" envprefix:"GUM_CONFIRM_SELECTED_"`
|
|
|
|
UnselectedStyle style.Styles `embed:"" prefix:"unselected." help:"The style of the unselected action" set:"defaultBackground=235" set:"defaultForeground=254" set:"defaultPadding=0 3" set:"defaultMargin=1 1" envprefix:"GUM_CONFIRM_UNSELECTED_"`
|
2022-07-26 21:43:26 +02:00
|
|
|
}
|