Documentation
¶
Index ¶
- type CliPrompter
- func (cli *CliPrompter) Choose(msg string, options ...string) string
- func (cli *CliPrompter) ChooseWithDefault(msg string, defaultValue string, options ...string) (string, error)
- func (cli *CliPrompter) Confirm(msg string) bool
- func (cli *CliPrompter) Password(msg string) string
- func (cli *CliPrompter) String(msg string, defaultValue string) string
- func (cli *CliPrompter) StringRequired(msg string) string
- type MockPrompter
- func (_m *MockPrompter) Choose(_a0 string, _a1 ...string) string
- func (_m *MockPrompter) ChooseWithDefault(_a0 string, _a1 string, _a2 ...string) (string, error)
- func (_m *MockPrompter) Confirm(_a0 string) bool
- func (_m *MockPrompter) Password(_a0 string) string
- func (_m *MockPrompter) String(_a0 string, _a1 string) string
- func (_m *MockPrompter) StringRequired(_a0 string) string
- type Prompter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliPrompter ¶
type CliPrompter struct{}
CliPrompter used to prompt for cli input
func (*CliPrompter) Choose ¶
func (cli *CliPrompter) Choose(msg string, options ...string) string
Choose given the choice return the option selected
func (*CliPrompter) ChooseWithDefault ¶
func (cli *CliPrompter) ChooseWithDefault(msg string, defaultValue string, options ...string) (string, error)
ChooseWithDefault given the choice return the option selected with a default
func (*CliPrompter) Confirm ¶
func (cli *CliPrompter) Confirm(msg string) bool
Confirm Ask the user if they confirm
func (*CliPrompter) Password ¶
func (cli *CliPrompter) Password(msg string) string
Password prompt for password which is required
func (*CliPrompter) String ¶
func (cli *CliPrompter) String(msg string, defaultValue string) string
StringRequired prompt for string which is required
func (*CliPrompter) StringRequired ¶
func (cli *CliPrompter) StringRequired(msg string) string
StringRequired prompt for string which is required
type MockPrompter ¶
MockPrompter is an autogenerated mock type for the Prompter type
func (*MockPrompter) Choose ¶
func (_m *MockPrompter) Choose(_a0 string, _a1 ...string) string
Choose provides a mock function with given fields: _a0, _a1
func (*MockPrompter) ChooseWithDefault ¶
ChooseWithDefault provides a mock function with given fields: _a0, _a1, _a2
func (*MockPrompter) Confirm ¶
func (_m *MockPrompter) Confirm(_a0 string) bool
Confirm provides a mock function with given fields: _a0
func (*MockPrompter) Password ¶
func (_m *MockPrompter) Password(_a0 string) string
Password provides a mock function with given fields: _a0
func (*MockPrompter) String ¶
func (_m *MockPrompter) String(_a0 string, _a1 string) string
String provides a mock function with given fields: _a0, _a1
func (*MockPrompter) StringRequired ¶
func (_m *MockPrompter) StringRequired(_a0 string) string
StringRequired provides a mock function with given fields: _a0