prompt

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromptConfirm

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

PromptConfirm prompts yes/no

func NewPromptConfirm added in v1.0.0

func NewPromptConfirm(label string) PromptConfirm

NewPromptConfirm create new PromptConfirm

func (*PromptConfirm) Prompt added in v1.0.0

func (p *PromptConfirm) Prompt() bool

Prompt ask confirmation of y/N

func (*PromptConfirm) SetIn added in v1.0.0

func (p *PromptConfirm) SetIn(in io.Reader)

SetIn sets the source for input data If newIn is nil, os.Stdin is used.

Jump to

Keyboard shortcuts

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