package prompt
import "github.com/docker/compose/v2/pkg/prompt"
Package prompt is a generated GoMock package.
Index ¶
- type MockUI
- func NewMockUI(ctrl *gomock.Controller) *MockUI
- func (m *MockUI) Confirm(arg0 string, arg1 bool) (bool, error)
- func (m *MockUI) EXPECT() *MockUIMockRecorder
- func (m *MockUI) Input(arg0, arg1 string) (string, error)
- func (m *MockUI) Password(arg0 string) (string, error)
- func (m *MockUI) Select(arg0 string, arg1 []string) (int, error)
- type MockUIMockRecorder
- func (mr *MockUIMockRecorder) Confirm(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUIMockRecorder) Input(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUIMockRecorder) Password(arg0 interface{}) *gomock.Call
- func (mr *MockUIMockRecorder) Select(arg0, arg1 interface{}) *gomock.Call
- type UI
- type User
Types ¶
type MockUI ¶
type MockUI struct {
// contains filtered or unexported fields
}
MockUI is a mock of UI interface
func NewMockUI ¶
func NewMockUI(ctrl *gomock.Controller) *MockUI
NewMockUI creates a new mock instance
func (*MockUI) Confirm ¶
Confirm mocks base method
func (*MockUI) EXPECT ¶
func (m *MockUI) EXPECT() *MockUIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUI) Input ¶
Input mocks base method
func (*MockUI) Password ¶
Password mocks base method
func (*MockUI) Select ¶
Select mocks base method
type MockUIMockRecorder ¶
type MockUIMockRecorder struct {
// contains filtered or unexported fields
}
MockUIMockRecorder is the mock recorder for MockUI
func (*MockUIMockRecorder) Confirm ¶
func (mr *MockUIMockRecorder) Confirm(arg0, arg1 interface{}) *gomock.Call
Confirm indicates an expected call of Confirm
func (*MockUIMockRecorder) Input ¶
func (mr *MockUIMockRecorder) Input(arg0, arg1 interface{}) *gomock.Call
Input indicates an expected call of Input
func (*MockUIMockRecorder) Password ¶
func (mr *MockUIMockRecorder) Password(arg0 interface{}) *gomock.Call
Password indicates an expected call of Password
func (*MockUIMockRecorder) Select ¶
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
type User ¶
type User struct{}
User - aggregates prompt methods
func (User) Confirm ¶
Confirm asks for yes or no input
func (User) Input ¶
Input text with default value
func (User) Password ¶
Password implements a text input with masked characters.
func (User) Select ¶
Select - displays a list
Source Files ¶
- Version
- v2.6.1
- Published
- Jun 23, 2022
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 30 minutes ago –
Tools for package owners.