prompts

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompter

type Prompter interface {
	YesNo(prompt string) (bool, error)
	ConfirmExact(prompt, required string) (bool, error)
}

Prompter provides confirmation prompts.

type TermPrompter

type TermPrompter struct {
	// contains filtered or unexported fields
}

TermPrompter implements Prompter for terminal IO.

func NewTermPrompter

func NewTermPrompter(in io.Reader, out io.Writer) *TermPrompter

func (*TermPrompter) ConfirmExact

func (p *TermPrompter) ConfirmExact(prompt, required string) (bool, error)

func (*TermPrompter) YesNo

func (p *TermPrompter) YesNo(prompt string) (bool, error)

Jump to

Keyboard shortcuts

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