Documentation ¶
Overview ¶
Package prompt is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUI ¶ added in v1.0.2
type MockUI struct {
// contains filtered or unexported fields
}
MockUI is a mock of UI interface
func NewMockUI ¶ added in v1.0.2
func NewMockUI(ctrl *gomock.Controller) *MockUI
NewMockUI creates a new mock instance
func (*MockUI) EXPECT ¶ added in v1.0.2
func (m *MockUI) EXPECT() *MockUIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockUIMockRecorder ¶ added in v1.0.2
type MockUIMockRecorder struct {
// contains filtered or unexported fields
}
MockUIMockRecorder is the mock recorder for MockUI
func (*MockUIMockRecorder) Confirm ¶ added in v1.0.2
func (mr *MockUIMockRecorder) Confirm(arg0, arg1 interface{}) *gomock.Call
Confirm indicates an expected call of Confirm
func (*MockUIMockRecorder) Input ¶ added in v1.0.2
func (mr *MockUIMockRecorder) Input(arg0, arg1 interface{}) *gomock.Call
Input indicates an expected call of Input
func (*MockUIMockRecorder) Password ¶ added in v1.0.2
func (mr *MockUIMockRecorder) Password(arg0 interface{}) *gomock.Call
Password indicates an expected call of Password
func (*MockUIMockRecorder) Select ¶ added in v1.0.2
func (mr *MockUIMockRecorder) Select(arg0, arg1 interface{}) *gomock.Call
Select indicates an expected call of Select
type UI ¶
type UI interface { Select(message string, options []string) (int, error) Input(message string, defaultValue string) (string, error) Confirm(message string, defaultValue bool) (bool, error) Password(message string) (string, error) }
UI - prompt user input
Click to show internal directories.
Click to hide internal directories.