confirm

package
v0.5.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Promptf

func Promptf(ctx context.Context, fmtString string, args ...any) error

func WithConfirm

func WithConfirm(ctx context.Context, c Confirm) context.Context

Types

type Confirm

type Confirm interface {
	Confirm(ctx context.Context, prompt string) error
}

type TextPrompt

type TextPrompt struct {
}

func (TextPrompt) Confirm

func (t TextPrompt) Confirm(_ context.Context, prompt string) error

Jump to

Keyboard shortcuts

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