prompt

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(message string) bool

Confirm prompts the user for yes/no confirmation Returns true if user confirms, false otherwise

func ConfirmDataDeletion

func ConfirmDataDeletion(resourceType, name string) bool

ConfirmDataDeletion prompts for confirmation of an irreversible data operation Requires the user to type the resource name exactly to confirm Returns true if confirmed, false otherwise

func ConfirmDataDeletionWith

func ConfirmDataDeletionWith(in io.Reader, out io.Writer, resourceType, name string) bool

ConfirmDataDeletionWith is ConfirmDataDeletion on the given streams.

func ConfirmDeletion

func ConfirmDeletion(resourceType, name, id string) bool

ConfirmDeletion prompts for confirmation of a destructive operation Shows resource details and requires explicit confirmation

func ConfirmDeletionWith

func ConfirmDeletionWith(in io.Reader, out io.Writer, resourceType, name, id string) bool

ConfirmDeletionWith is ConfirmDeletion on the given streams.

func ConfirmWith

func ConfirmWith(in io.Reader, out io.Writer, message string) bool

ConfirmWith is Confirm on the given streams, for a caller that owns the invocation's input and output instead of the process's. It buffers in per call, so pass a *bufio.Reader when confirming more than once on one in.

func ValidateConfirmFlag

func ValidateConfirmFlag(confirmValue, resourceName string) bool

ValidateConfirmFlag checks if the --confirm flag value matches the resource name Used for non-interactive confirmation of data deletion

Types

This section is empty.

Jump to

Keyboard shortcuts

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