confirm

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfirmation

func GetConfirmation(prompts ...string) bool

GetConfirmation ensures that the user confirms the action before proceeding.

Types

type ConfirmOptions

type ConfirmOptions struct {
	Confirm bool
	// contains filtered or unexported fields
}

func NewConfirmOptions

func NewConfirmOptions() *ConfirmOptions

func NewConfirmOptionsWithDescription

func NewConfirmOptionsWithDescription(desc string) *ConfirmOptions

func (*ConfirmOptions) BindFlags

func (o *ConfirmOptions) BindFlags(flags *pflag.FlagSet)

Bind confirm flags.

Jump to

Keyboard shortcuts

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