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)
Click to show internal directories.
Click to hide internal directories.