Documentation
¶
Index ¶
- type Prompter
- func (_m *Prompter) Confirm(prompt string) (bool, error)
- func (_m *Prompter) InputHiddenString(prompt string, help string, validator func(string) error) (string, error)
- func (_m *Prompter) InputInteger(prompt string, defValue string, help string, validator func(int64) error) (int64, error)
- func (_m *Prompter) InputString(prompt string, defValue string, help string, validator func(string) error) (string, error)
- func (_m *Prompter) Select(prompt string, options []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶ added in v0.2.2
Prompter is an autogenerated mock type for the Prompter type
func NewPrompter ¶ added in v0.2.2
NewPrompter creates a new instance of Prompter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Prompter) Confirm ¶ added in v0.2.2
Confirm provides a mock function with given fields: prompt
func (*Prompter) InputHiddenString ¶ added in v0.2.2
func (_m *Prompter) InputHiddenString(prompt string, help string, validator func(string) error) (string, error)
InputHiddenString provides a mock function with given fields: prompt, help, validator
func (*Prompter) InputInteger ¶ added in v0.2.2
func (_m *Prompter) InputInteger(prompt string, defValue string, help string, validator func(int64) error) (int64, error)
InputInteger provides a mock function with given fields: prompt, defValue, help, validator
Click to show internal directories.
Click to hide internal directories.