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