confirm

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package confirm prompts the user for yes/no confirmation on stdin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action added in v0.21.0

func Action(r io.Reader, w io.Writer, warning, question string) (bool, error)

Action prompts for confirmation of a destructive change other than a delete. warning describes what the caller is about to do, and question asks it.

func Delete

func Delete(r io.Reader, w io.Writer, resource string, names ...string) (bool, error)

Delete prompts for delete confirmation for one or more named resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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