Documentation ¶
Overview ¶
Package prompter is a generated GoMock package.
Index ¶
- Variables
- type ListOption
- type MockPrompter
- func (m *MockPrompter) AskForMultilineString(direction, defaultValue, pattern string) (string, error)
- func (m *MockPrompter) AskForMultipleSelectionFromList(direction string, list []fmt.Stringer) ([]any, error)
- func (m *MockPrompter) AskForSelectionFromList(direction string, list []fmt.Stringer) (any, error)
- func (m *MockPrompter) AskForString(direction string, validator Validator) (string, error)
- func (m *MockPrompter) AskForYesOrNo(direction string) (bool, error)
- func (m *MockPrompter) EXPECT() *MockPrompterMockRecorder
- type MockPrompterMockRecorder
- func (mr *MockPrompterMockRecorder) AskForMultilineString(direction, defaultValue, pattern interface{}) *gomock.Call
- func (mr *MockPrompterMockRecorder) AskForMultipleSelectionFromList(direction, list interface{}) *gomock.Call
- func (mr *MockPrompterMockRecorder) AskForSelectionFromList(direction, list interface{}) *gomock.Call
- func (mr *MockPrompterMockRecorder) AskForString(direction, validator interface{}) *gomock.Call
- func (mr *MockPrompterMockRecorder) AskForYesOrNo(direction interface{}) *gomock.Call
- type Prompter
- type Validator
Constants ¶
This section is empty.
Variables ¶
var (
EmptyList = errors.New("options can not be empty")
)
Functions ¶
This section is empty.
Types ¶
type ListOption ¶
type MockPrompter ¶
type MockPrompter struct {
// contains filtered or unexported fields
}
MockPrompter is a mock of Prompter interface.
func NewMockPrompter ¶
func NewMockPrompter(ctrl *gomock.Controller) *MockPrompter
NewMockPrompter creates a new mock instance.
func (*MockPrompter) AskForMultilineString ¶
func (m *MockPrompter) AskForMultilineString(direction, defaultValue, pattern string) (string, error)
AskForMultilineString mocks base method.
func (*MockPrompter) AskForMultipleSelectionFromList ¶ added in v1.8.0
func (m *MockPrompter) AskForMultipleSelectionFromList(direction string, list []fmt.Stringer) ([]any, error)
AskForMultipleSelectionFromList mocks base method.
func (*MockPrompter) AskForSelectionFromList ¶
AskForSelectionFromList mocks base method.
func (*MockPrompter) AskForString ¶
func (m *MockPrompter) AskForString(direction string, validator Validator) (string, error)
AskForString mocks base method.
func (*MockPrompter) AskForYesOrNo ¶
func (m *MockPrompter) AskForYesOrNo(direction string) (bool, error)
AskForYesOrNo mocks base method.
func (*MockPrompter) EXPECT ¶
func (m *MockPrompter) EXPECT() *MockPrompterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPrompterMockRecorder ¶
type MockPrompterMockRecorder struct {
// contains filtered or unexported fields
}
MockPrompterMockRecorder is the mock recorder for MockPrompter.
func (*MockPrompterMockRecorder) AskForMultilineString ¶
func (mr *MockPrompterMockRecorder) AskForMultilineString(direction, defaultValue, pattern interface{}) *gomock.Call
AskForMultilineString indicates an expected call of AskForMultilineString.
func (*MockPrompterMockRecorder) AskForMultipleSelectionFromList ¶ added in v1.8.0
func (mr *MockPrompterMockRecorder) AskForMultipleSelectionFromList(direction, list interface{}) *gomock.Call
AskForMultipleSelectionFromList indicates an expected call of AskForMultipleSelectionFromList.
func (*MockPrompterMockRecorder) AskForSelectionFromList ¶
func (mr *MockPrompterMockRecorder) AskForSelectionFromList(direction, list interface{}) *gomock.Call
AskForSelectionFromList indicates an expected call of AskForSelectionFromList.
func (*MockPrompterMockRecorder) AskForString ¶
func (mr *MockPrompterMockRecorder) AskForString(direction, validator interface{}) *gomock.Call
AskForString indicates an expected call of AskForString.
func (*MockPrompterMockRecorder) AskForYesOrNo ¶
func (mr *MockPrompterMockRecorder) AskForYesOrNo(direction interface{}) *gomock.Call
AskForYesOrNo indicates an expected call of AskForYesOrNo.
type Prompter ¶
type Prompter interface { AskForString(direction string, validator Validator) (string, error) AskForSelectionFromList(direction string, list []fmt.Stringer) (any, error) AskForMultipleSelectionFromList(direction string, list []fmt.Stringer) ([]any, error) AskForYesOrNo(direction string) (bool, error) AskForMultilineString(direction, defaultValue, pattern string) (string, error) }
func GetInstance ¶
func GetInstance() Prompter