prompt

package
v2.26.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

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

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

func (m *MockUI) Confirm(arg0 string, arg1 bool) (bool, error)

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

func (m *MockUI) Input(arg0, arg1 string) (string, error)

Input mocks base method

func (*MockUI) Password

func (m *MockUI) Password(arg0 string) (string, error)

Password mocks base method

func (*MockUI) Select

func (m *MockUI) Select(arg0 string, arg1 []string) (int, error)

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 Pipe added in v2.15.1

type Pipe struct {
	// contains filtered or unexported fields
}

Pipe - aggregates prompt methods

func (Pipe) Confirm added in v2.15.1

func (u Pipe) Confirm(message string, defaultValue bool) (bool, error)

Confirm asks for yes or no input

type UI

type UI interface {
	Confirm(message string, defaultValue bool) (bool, error)
}

UI - prompt user input

func NewPrompt added in v2.15.1

func NewPrompt(stdin *streams.In, stdout *streams.Out) UI

type User

type User struct {
	// contains filtered or unexported fields
}

User - in a terminal

func (User) Confirm

func (u User) Confirm(message string, defaultValue bool) (bool, error)

Confirm asks for yes or no input

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL