confirm

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmOption added in v0.9.9

type ConfirmOption func(cfm *Confirmation)

func WithPrompt added in v0.9.9

func WithPrompt(prompt string, style ...lipgloss.Style) ConfirmOption

type Confirmation added in v0.9.9

type Confirmation struct {
	// contains filtered or unexported fields
}

func NewConfirmation added in v0.9.9

func NewConfirmation(options ...ConfirmOption) *Confirmation

func (*Confirmation) Result added in v0.9.9

func (cfm *Confirmation) Result() bool

func (*Confirmation) Run added in v0.9.9

func (cfm *Confirmation) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL