confirm

package
v1.2.49 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlag

func AddFlag(flags *pflag.FlagSet)

AddFlag adds the --yes flag to the given set of command line flags.

func Confirm

func Confirm(q string, v ...interface{}) bool

func ConfirmRaw added in v1.2.31

func ConfirmRaw(q string) bool

Asks the user to confirm the operation, using the specified string as the message

func Prompt added in v1.1.1

func Prompt(dflt bool, q string, v ...interface{}) bool

func Yes added in v1.1.12

func Yes() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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