console

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artisan

type Artisan struct {
	mock.Mock
}

Artisan is an autogenerated mock type for the Artisan type

func NewArtisan

func NewArtisan(t interface {
	mock.TestingT
	Cleanup(func())
}) *Artisan

NewArtisan creates a new instance of Artisan. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Artisan) Call

func (_m *Artisan) Call(command string) error

Call provides a mock function with given fields: command

func (*Artisan) CallAndExit

func (_m *Artisan) CallAndExit(command string)

CallAndExit provides a mock function with given fields: command

func (*Artisan) EXPECT

func (_m *Artisan) EXPECT() *Artisan_Expecter

func (*Artisan) Register

func (_m *Artisan) Register(commands []console.Command)

Register provides a mock function with given fields: commands

func (*Artisan) Run

func (_m *Artisan) Run(args []string, exitIfArtisan bool) error

Run provides a mock function with given fields: args, exitIfArtisan

type Artisan_CallAndExit_Call

type Artisan_CallAndExit_Call struct {
	*mock.Call
}

Artisan_CallAndExit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallAndExit'

func (*Artisan_CallAndExit_Call) Return

func (*Artisan_CallAndExit_Call) Run

func (_c *Artisan_CallAndExit_Call) Run(run func(command string)) *Artisan_CallAndExit_Call

func (*Artisan_CallAndExit_Call) RunAndReturn

func (_c *Artisan_CallAndExit_Call) RunAndReturn(run func(string)) *Artisan_CallAndExit_Call

type Artisan_Call_Call

type Artisan_Call_Call struct {
	*mock.Call
}

Artisan_Call_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Call'

func (*Artisan_Call_Call) Return

func (_c *Artisan_Call_Call) Return(_a0 error) *Artisan_Call_Call

func (*Artisan_Call_Call) Run

func (_c *Artisan_Call_Call) Run(run func(command string)) *Artisan_Call_Call

func (*Artisan_Call_Call) RunAndReturn

func (_c *Artisan_Call_Call) RunAndReturn(run func(string) error) *Artisan_Call_Call

type Artisan_Expecter

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

func (*Artisan_Expecter) Call

func (_e *Artisan_Expecter) Call(command interface{}) *Artisan_Call_Call

Call is a helper method to define mock.On call

  • command string

func (*Artisan_Expecter) CallAndExit

func (_e *Artisan_Expecter) CallAndExit(command interface{}) *Artisan_CallAndExit_Call

CallAndExit is a helper method to define mock.On call

  • command string

func (*Artisan_Expecter) Register

func (_e *Artisan_Expecter) Register(commands interface{}) *Artisan_Register_Call

Register is a helper method to define mock.On call

  • commands []console.Command

func (*Artisan_Expecter) Run

func (_e *Artisan_Expecter) Run(args interface{}, exitIfArtisan interface{}) *Artisan_Run_Call

Run is a helper method to define mock.On call

  • args []string
  • exitIfArtisan bool

type Artisan_Register_Call

type Artisan_Register_Call struct {
	*mock.Call
}

Artisan_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'

func (*Artisan_Register_Call) Return

func (*Artisan_Register_Call) Run

func (_c *Artisan_Register_Call) Run(run func(commands []console.Command)) *Artisan_Register_Call

func (*Artisan_Register_Call) RunAndReturn

func (_c *Artisan_Register_Call) RunAndReturn(run func([]console.Command)) *Artisan_Register_Call

type Artisan_Run_Call

type Artisan_Run_Call struct {
	*mock.Call
}

Artisan_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*Artisan_Run_Call) Return

func (_c *Artisan_Run_Call) Return(_a0 error) *Artisan_Run_Call

func (*Artisan_Run_Call) Run

func (_c *Artisan_Run_Call) Run(run func(args []string, exitIfArtisan bool)) *Artisan_Run_Call

func (*Artisan_Run_Call) RunAndReturn

func (_c *Artisan_Run_Call) RunAndReturn(run func([]string, bool) error) *Artisan_Run_Call

type Command

type Command struct {
	mock.Mock
}

Command is an autogenerated mock type for the Command type

func NewCommand

func NewCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *Command

NewCommand creates a new instance of Command. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Command) Description

func (_m *Command) Description() string

Description provides a mock function with no fields

func (*Command) EXPECT

func (_m *Command) EXPECT() *Command_Expecter

func (*Command) Extend

func (_m *Command) Extend() command.Extend

Extend provides a mock function with no fields

func (*Command) Handle

func (_m *Command) Handle(ctx console.Context) error

Handle provides a mock function with given fields: ctx

func (*Command) Signature

func (_m *Command) Signature() string

Signature provides a mock function with no fields

type Command_Description_Call

type Command_Description_Call struct {
	*mock.Call
}

Command_Description_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Description'

func (*Command_Description_Call) Return

func (*Command_Description_Call) Run

func (*Command_Description_Call) RunAndReturn

func (_c *Command_Description_Call) RunAndReturn(run func() string) *Command_Description_Call

type Command_Expecter

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

func (*Command_Expecter) Description

func (_e *Command_Expecter) Description() *Command_Description_Call

Description is a helper method to define mock.On call

func (*Command_Expecter) Extend

func (_e *Command_Expecter) Extend() *Command_Extend_Call

Extend is a helper method to define mock.On call

func (*Command_Expecter) Handle

func (_e *Command_Expecter) Handle(ctx interface{}) *Command_Handle_Call

Handle is a helper method to define mock.On call

  • ctx console.Context

func (*Command_Expecter) Signature

func (_e *Command_Expecter) Signature() *Command_Signature_Call

Signature is a helper method to define mock.On call

type Command_Extend_Call

type Command_Extend_Call struct {
	*mock.Call
}

Command_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'

func (*Command_Extend_Call) Return

func (*Command_Extend_Call) Run

func (_c *Command_Extend_Call) Run(run func()) *Command_Extend_Call

func (*Command_Extend_Call) RunAndReturn

func (_c *Command_Extend_Call) RunAndReturn(run func() command.Extend) *Command_Extend_Call

type Command_Handle_Call

type Command_Handle_Call struct {
	*mock.Call
}

Command_Handle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handle'

func (*Command_Handle_Call) Return

func (*Command_Handle_Call) Run

func (_c *Command_Handle_Call) Run(run func(ctx console.Context)) *Command_Handle_Call

func (*Command_Handle_Call) RunAndReturn

func (_c *Command_Handle_Call) RunAndReturn(run func(console.Context) error) *Command_Handle_Call

type Command_Signature_Call

type Command_Signature_Call struct {
	*mock.Call
}

Command_Signature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signature'

func (*Command_Signature_Call) Return

func (*Command_Signature_Call) Run

func (_c *Command_Signature_Call) Run(run func()) *Command_Signature_Call

func (*Command_Signature_Call) RunAndReturn

func (_c *Command_Signature_Call) RunAndReturn(run func() string) *Command_Signature_Call

type Context

type Context struct {
	mock.Mock
}

Context is an autogenerated mock type for the Context type

func NewContext

func NewContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *Context

NewContext creates a new instance of Context. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Context) Argument

func (_m *Context) Argument(index int) string

Argument provides a mock function with given fields: index

func (*Context) ArgumentFloat32 added in v1.17.0

func (_m *Context) ArgumentFloat32(key string) float32

ArgumentFloat32 provides a mock function with given fields: key

func (*Context) ArgumentFloat32Slice added in v1.17.0

func (_m *Context) ArgumentFloat32Slice(key string) []float32

ArgumentFloat32Slice provides a mock function with given fields: key

func (*Context) ArgumentFloat64 added in v1.17.0

func (_m *Context) ArgumentFloat64(key string) float64

ArgumentFloat64 provides a mock function with given fields: key

func (*Context) ArgumentFloat64Slice added in v1.17.0

func (_m *Context) ArgumentFloat64Slice(key string) []float64

ArgumentFloat64Slice provides a mock function with given fields: key

func (*Context) ArgumentInt added in v1.17.0

func (_m *Context) ArgumentInt(key string) int

ArgumentInt provides a mock function with given fields: key

func (*Context) ArgumentInt16 added in v1.17.0

func (_m *Context) ArgumentInt16(key string) int16

ArgumentInt16 provides a mock function with given fields: key

func (*Context) ArgumentInt16Slice added in v1.17.0

func (_m *Context) ArgumentInt16Slice(key string) []int16

ArgumentInt16Slice provides a mock function with given fields: key

func (*Context) ArgumentInt32 added in v1.17.0

func (_m *Context) ArgumentInt32(key string) int32

ArgumentInt32 provides a mock function with given fields: key

func (*Context) ArgumentInt32Slice added in v1.17.0

func (_m *Context) ArgumentInt32Slice(key string) []int32

ArgumentInt32Slice provides a mock function with given fields: key

func (*Context) ArgumentInt64 added in v1.17.0

func (_m *Context) ArgumentInt64(key string) int64

ArgumentInt64 provides a mock function with given fields: key

func (*Context) ArgumentInt64Slice added in v1.17.0

func (_m *Context) ArgumentInt64Slice(key string) []int64

ArgumentInt64Slice provides a mock function with given fields: key

func (*Context) ArgumentInt8 added in v1.17.0

func (_m *Context) ArgumentInt8(key string) int8

ArgumentInt8 provides a mock function with given fields: key

func (*Context) ArgumentInt8Slice added in v1.17.0

func (_m *Context) ArgumentInt8Slice(key string) []int8

ArgumentInt8Slice provides a mock function with given fields: key

func (*Context) ArgumentIntSlice added in v1.17.0

func (_m *Context) ArgumentIntSlice(key string) []int

ArgumentIntSlice provides a mock function with given fields: key

func (*Context) ArgumentString added in v1.17.0

func (_m *Context) ArgumentString(key string) string

ArgumentString provides a mock function with given fields: key

func (*Context) ArgumentStringSlice added in v1.17.0

func (_m *Context) ArgumentStringSlice(key string) []string

ArgumentStringSlice provides a mock function with given fields: key

func (*Context) ArgumentTimestamp added in v1.17.0

func (_m *Context) ArgumentTimestamp(key string) time.Time

ArgumentTimestamp provides a mock function with given fields: key

func (*Context) ArgumentTimestampSlice added in v1.17.0

func (_m *Context) ArgumentTimestampSlice(key string) []time.Time

ArgumentTimestampSlice provides a mock function with given fields: key

func (*Context) ArgumentUint added in v1.17.0

func (_m *Context) ArgumentUint(key string) uint

ArgumentUint provides a mock function with given fields: key

func (*Context) ArgumentUint16 added in v1.17.0

func (_m *Context) ArgumentUint16(key string) uint16

ArgumentUint16 provides a mock function with given fields: key

func (*Context) ArgumentUint16Slice added in v1.17.0

func (_m *Context) ArgumentUint16Slice(key string) []uint16

ArgumentUint16Slice provides a mock function with given fields: key

func (*Context) ArgumentUint32 added in v1.17.0

func (_m *Context) ArgumentUint32(key string) uint32

ArgumentUint32 provides a mock function with given fields: key

func (*Context) ArgumentUint32Slice added in v1.17.0

func (_m *Context) ArgumentUint32Slice(key string) []uint32

ArgumentUint32Slice provides a mock function with given fields: key

func (*Context) ArgumentUint64 added in v1.17.0

func (_m *Context) ArgumentUint64(key string) uint64

ArgumentUint64 provides a mock function with given fields: key

func (*Context) ArgumentUint64Slice added in v1.17.0

func (_m *Context) ArgumentUint64Slice(key string) []uint64

ArgumentUint64Slice provides a mock function with given fields: key

func (*Context) ArgumentUint8 added in v1.17.0

func (_m *Context) ArgumentUint8(key string) uint8

ArgumentUint8 provides a mock function with given fields: key

func (*Context) ArgumentUint8Slice added in v1.17.0

func (_m *Context) ArgumentUint8Slice(key string) []uint8

ArgumentUint8Slice provides a mock function with given fields: key

func (*Context) ArgumentUintSlice added in v1.17.0

func (_m *Context) ArgumentUintSlice(key string) []uint

ArgumentUintSlice provides a mock function with given fields: key

func (*Context) Arguments

func (_m *Context) Arguments() []string

Arguments provides a mock function with no fields

func (*Context) Ask

func (_m *Context) Ask(question string, option ...console.AskOption) (string, error)

Ask provides a mock function with given fields: question, option

func (*Context) Black added in v1.17.0

func (_m *Context) Black(message string)

Black provides a mock function with given fields: message

func (*Context) Blackln added in v1.17.0

func (_m *Context) Blackln(message string)

Blackln provides a mock function with given fields: message

func (*Context) Choice

func (_m *Context) Choice(question string, options []console.Choice, option ...console.ChoiceOption) (string, error)

Choice provides a mock function with given fields: question, options, option

func (*Context) Comment

func (_m *Context) Comment(message string)

Comment provides a mock function with given fields: message

func (*Context) Confirm

func (_m *Context) Confirm(question string, option ...console.ConfirmOption) bool

Confirm provides a mock function with given fields: question, option

func (*Context) CreateProgressBar

func (_m *Context) CreateProgressBar(total int) console.Progress

CreateProgressBar provides a mock function with given fields: total

func (*Context) Divider added in v1.17.0

func (_m *Context) Divider(filler ...string)

Divider provides a mock function with given fields: filler

func (*Context) EXPECT

func (_m *Context) EXPECT() *Context_Expecter

func (*Context) Error

func (_m *Context) Error(message string)

Error provides a mock function with given fields: message

func (*Context) Green added in v1.17.0

func (_m *Context) Green(message string)

Green provides a mock function with given fields: message

func (*Context) Greenln added in v1.17.0

func (_m *Context) Greenln(message string)

Greenln provides a mock function with given fields: message

func (*Context) Info

func (_m *Context) Info(message string)

Info provides a mock function with given fields: message

func (*Context) Instance added in v1.16.4

func (_m *Context) Instance() *cli.Command

Instance provides a mock function with no fields

func (*Context) Line

func (_m *Context) Line(message string)

Line provides a mock function with given fields: message

func (*Context) MultiSelect

func (_m *Context) MultiSelect(question string, options []console.Choice, option ...console.MultiSelectOption) ([]string, error)

MultiSelect provides a mock function with given fields: question, options, option

func (*Context) NewLine

func (_m *Context) NewLine(times ...int)

NewLine provides a mock function with given fields: times

func (*Context) Option

func (_m *Context) Option(key string) string

Option provides a mock function with given fields: key

func (*Context) OptionBool

func (_m *Context) OptionBool(key string) bool

OptionBool provides a mock function with given fields: key

func (*Context) OptionFloat64

func (_m *Context) OptionFloat64(key string) float64

OptionFloat64 provides a mock function with given fields: key

func (*Context) OptionFloat64Slice

func (_m *Context) OptionFloat64Slice(key string) []float64

OptionFloat64Slice provides a mock function with given fields: key

func (*Context) OptionInt

func (_m *Context) OptionInt(key string) int

OptionInt provides a mock function with given fields: key

func (*Context) OptionInt64

func (_m *Context) OptionInt64(key string) int64

OptionInt64 provides a mock function with given fields: key

func (*Context) OptionInt64Slice

func (_m *Context) OptionInt64Slice(key string) []int64

OptionInt64Slice provides a mock function with given fields: key

func (*Context) OptionIntSlice

func (_m *Context) OptionIntSlice(key string) []int

OptionIntSlice provides a mock function with given fields: key

func (*Context) OptionSlice

func (_m *Context) OptionSlice(key string) []string

OptionSlice provides a mock function with given fields: key

func (*Context) Red added in v1.17.0

func (_m *Context) Red(message string)

Red provides a mock function with given fields: message

func (*Context) Redln added in v1.17.0

func (_m *Context) Redln(message string)

Redln provides a mock function with given fields: message

func (*Context) Secret

func (_m *Context) Secret(question string, option ...console.SecretOption) (string, error)

Secret provides a mock function with given fields: question, option

func (*Context) Spinner

func (_m *Context) Spinner(message string, option console.SpinnerOption) error

Spinner provides a mock function with given fields: message, option

func (*Context) Success added in v1.15.0

func (_m *Context) Success(message string)

Success provides a mock function with given fields: message

func (*Context) TwoColumnDetail added in v1.15.0

func (_m *Context) TwoColumnDetail(first string, second string, filler ...rune)

TwoColumnDetail provides a mock function with given fields: first, second, filler

func (*Context) Warning

func (_m *Context) Warning(message string)

Warning provides a mock function with given fields: message

func (*Context) WithProgressBar

func (_m *Context) WithProgressBar(items []interface{}, callback func(interface{}) error) ([]interface{}, error)

WithProgressBar provides a mock function with given fields: items, callback

func (*Context) Yellow added in v1.17.0

func (_m *Context) Yellow(message string)

Yellow provides a mock function with given fields: message

func (*Context) Yellowln added in v1.17.0

func (_m *Context) Yellowln(message string)

Yellowln provides a mock function with given fields: message

type Context_ArgumentFloat32Slice_Call added in v1.17.0

type Context_ArgumentFloat32Slice_Call struct {
	*mock.Call
}

Context_ArgumentFloat32Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentFloat32Slice'

func (*Context_ArgumentFloat32Slice_Call) Return added in v1.17.0

func (*Context_ArgumentFloat32Slice_Call) Run added in v1.17.0

func (*Context_ArgumentFloat32Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentFloat32_Call added in v1.17.0

type Context_ArgumentFloat32_Call struct {
	*mock.Call
}

Context_ArgumentFloat32_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentFloat32'

func (*Context_ArgumentFloat32_Call) Return added in v1.17.0

func (*Context_ArgumentFloat32_Call) Run added in v1.17.0

func (*Context_ArgumentFloat32_Call) RunAndReturn added in v1.17.0

type Context_ArgumentFloat64Slice_Call added in v1.17.0

type Context_ArgumentFloat64Slice_Call struct {
	*mock.Call
}

Context_ArgumentFloat64Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentFloat64Slice'

func (*Context_ArgumentFloat64Slice_Call) Return added in v1.17.0

func (*Context_ArgumentFloat64Slice_Call) Run added in v1.17.0

func (*Context_ArgumentFloat64Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentFloat64_Call added in v1.17.0

type Context_ArgumentFloat64_Call struct {
	*mock.Call
}

Context_ArgumentFloat64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentFloat64'

func (*Context_ArgumentFloat64_Call) Return added in v1.17.0

func (*Context_ArgumentFloat64_Call) Run added in v1.17.0

func (*Context_ArgumentFloat64_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt16Slice_Call added in v1.17.0

type Context_ArgumentInt16Slice_Call struct {
	*mock.Call
}

Context_ArgumentInt16Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt16Slice'

func (*Context_ArgumentInt16Slice_Call) Return added in v1.17.0

func (*Context_ArgumentInt16Slice_Call) Run added in v1.17.0

func (*Context_ArgumentInt16Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt16_Call added in v1.17.0

type Context_ArgumentInt16_Call struct {
	*mock.Call
}

Context_ArgumentInt16_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt16'

func (*Context_ArgumentInt16_Call) Return added in v1.17.0

func (*Context_ArgumentInt16_Call) Run added in v1.17.0

func (*Context_ArgumentInt16_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt32Slice_Call added in v1.17.0

type Context_ArgumentInt32Slice_Call struct {
	*mock.Call
}

Context_ArgumentInt32Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt32Slice'

func (*Context_ArgumentInt32Slice_Call) Return added in v1.17.0

func (*Context_ArgumentInt32Slice_Call) Run added in v1.17.0

func (*Context_ArgumentInt32Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt32_Call added in v1.17.0

type Context_ArgumentInt32_Call struct {
	*mock.Call
}

Context_ArgumentInt32_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt32'

func (*Context_ArgumentInt32_Call) Return added in v1.17.0

func (*Context_ArgumentInt32_Call) Run added in v1.17.0

func (*Context_ArgumentInt32_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt64Slice_Call added in v1.17.0

type Context_ArgumentInt64Slice_Call struct {
	*mock.Call
}

Context_ArgumentInt64Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt64Slice'

func (*Context_ArgumentInt64Slice_Call) Return added in v1.17.0

func (*Context_ArgumentInt64Slice_Call) Run added in v1.17.0

func (*Context_ArgumentInt64Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt64_Call added in v1.17.0

type Context_ArgumentInt64_Call struct {
	*mock.Call
}

Context_ArgumentInt64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt64'

func (*Context_ArgumentInt64_Call) Return added in v1.17.0

func (*Context_ArgumentInt64_Call) Run added in v1.17.0

func (*Context_ArgumentInt64_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt8Slice_Call added in v1.17.0

type Context_ArgumentInt8Slice_Call struct {
	*mock.Call
}

Context_ArgumentInt8Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt8Slice'

func (*Context_ArgumentInt8Slice_Call) Return added in v1.17.0

func (*Context_ArgumentInt8Slice_Call) Run added in v1.17.0

func (*Context_ArgumentInt8Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt8_Call added in v1.17.0

type Context_ArgumentInt8_Call struct {
	*mock.Call
}

Context_ArgumentInt8_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt8'

func (*Context_ArgumentInt8_Call) Return added in v1.17.0

func (*Context_ArgumentInt8_Call) Run added in v1.17.0

func (*Context_ArgumentInt8_Call) RunAndReturn added in v1.17.0

func (_c *Context_ArgumentInt8_Call) RunAndReturn(run func(string) int8) *Context_ArgumentInt8_Call

type Context_ArgumentIntSlice_Call added in v1.17.0

type Context_ArgumentIntSlice_Call struct {
	*mock.Call
}

Context_ArgumentIntSlice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentIntSlice'

func (*Context_ArgumentIntSlice_Call) Return added in v1.17.0

func (*Context_ArgumentIntSlice_Call) Run added in v1.17.0

func (*Context_ArgumentIntSlice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentInt_Call added in v1.17.0

type Context_ArgumentInt_Call struct {
	*mock.Call
}

Context_ArgumentInt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentInt'

func (*Context_ArgumentInt_Call) Return added in v1.17.0

func (*Context_ArgumentInt_Call) Run added in v1.17.0

func (*Context_ArgumentInt_Call) RunAndReturn added in v1.17.0

func (_c *Context_ArgumentInt_Call) RunAndReturn(run func(string) int) *Context_ArgumentInt_Call

type Context_ArgumentStringSlice_Call added in v1.17.0

type Context_ArgumentStringSlice_Call struct {
	*mock.Call
}

Context_ArgumentStringSlice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentStringSlice'

func (*Context_ArgumentStringSlice_Call) Return added in v1.17.0

func (*Context_ArgumentStringSlice_Call) Run added in v1.17.0

func (*Context_ArgumentStringSlice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentString_Call added in v1.17.0

type Context_ArgumentString_Call struct {
	*mock.Call
}

Context_ArgumentString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentString'

func (*Context_ArgumentString_Call) Return added in v1.17.0

func (*Context_ArgumentString_Call) Run added in v1.17.0

func (*Context_ArgumentString_Call) RunAndReturn added in v1.17.0

type Context_ArgumentTimestampSlice_Call added in v1.17.0

type Context_ArgumentTimestampSlice_Call struct {
	*mock.Call
}

Context_ArgumentTimestampSlice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentTimestampSlice'

func (*Context_ArgumentTimestampSlice_Call) Return added in v1.17.0

func (*Context_ArgumentTimestampSlice_Call) Run added in v1.17.0

func (*Context_ArgumentTimestampSlice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentTimestamp_Call added in v1.17.0

type Context_ArgumentTimestamp_Call struct {
	*mock.Call
}

Context_ArgumentTimestamp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentTimestamp'

func (*Context_ArgumentTimestamp_Call) Return added in v1.17.0

func (*Context_ArgumentTimestamp_Call) Run added in v1.17.0

func (*Context_ArgumentTimestamp_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint16Slice_Call added in v1.17.0

type Context_ArgumentUint16Slice_Call struct {
	*mock.Call
}

Context_ArgumentUint16Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint16Slice'

func (*Context_ArgumentUint16Slice_Call) Return added in v1.17.0

func (*Context_ArgumentUint16Slice_Call) Run added in v1.17.0

func (*Context_ArgumentUint16Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint16_Call added in v1.17.0

type Context_ArgumentUint16_Call struct {
	*mock.Call
}

Context_ArgumentUint16_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint16'

func (*Context_ArgumentUint16_Call) Return added in v1.17.0

func (*Context_ArgumentUint16_Call) Run added in v1.17.0

func (*Context_ArgumentUint16_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint32Slice_Call added in v1.17.0

type Context_ArgumentUint32Slice_Call struct {
	*mock.Call
}

Context_ArgumentUint32Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint32Slice'

func (*Context_ArgumentUint32Slice_Call) Return added in v1.17.0

func (*Context_ArgumentUint32Slice_Call) Run added in v1.17.0

func (*Context_ArgumentUint32Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint32_Call added in v1.17.0

type Context_ArgumentUint32_Call struct {
	*mock.Call
}

Context_ArgumentUint32_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint32'

func (*Context_ArgumentUint32_Call) Return added in v1.17.0

func (*Context_ArgumentUint32_Call) Run added in v1.17.0

func (*Context_ArgumentUint32_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint64Slice_Call added in v1.17.0

type Context_ArgumentUint64Slice_Call struct {
	*mock.Call
}

Context_ArgumentUint64Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint64Slice'

func (*Context_ArgumentUint64Slice_Call) Return added in v1.17.0

func (*Context_ArgumentUint64Slice_Call) Run added in v1.17.0

func (*Context_ArgumentUint64Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint64_Call added in v1.17.0

type Context_ArgumentUint64_Call struct {
	*mock.Call
}

Context_ArgumentUint64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint64'

func (*Context_ArgumentUint64_Call) Return added in v1.17.0

func (*Context_ArgumentUint64_Call) Run added in v1.17.0

func (*Context_ArgumentUint64_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint8Slice_Call added in v1.17.0

type Context_ArgumentUint8Slice_Call struct {
	*mock.Call
}

Context_ArgumentUint8Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint8Slice'

func (*Context_ArgumentUint8Slice_Call) Return added in v1.17.0

func (*Context_ArgumentUint8Slice_Call) Run added in v1.17.0

func (*Context_ArgumentUint8Slice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint8_Call added in v1.17.0

type Context_ArgumentUint8_Call struct {
	*mock.Call
}

Context_ArgumentUint8_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint8'

func (*Context_ArgumentUint8_Call) Return added in v1.17.0

func (*Context_ArgumentUint8_Call) Run added in v1.17.0

func (*Context_ArgumentUint8_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUintSlice_Call added in v1.17.0

type Context_ArgumentUintSlice_Call struct {
	*mock.Call
}

Context_ArgumentUintSlice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUintSlice'

func (*Context_ArgumentUintSlice_Call) Return added in v1.17.0

func (*Context_ArgumentUintSlice_Call) Run added in v1.17.0

func (*Context_ArgumentUintSlice_Call) RunAndReturn added in v1.17.0

type Context_ArgumentUint_Call added in v1.17.0

type Context_ArgumentUint_Call struct {
	*mock.Call
}

Context_ArgumentUint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArgumentUint'

func (*Context_ArgumentUint_Call) Return added in v1.17.0

func (*Context_ArgumentUint_Call) Run added in v1.17.0

func (*Context_ArgumentUint_Call) RunAndReturn added in v1.17.0

func (_c *Context_ArgumentUint_Call) RunAndReturn(run func(string) uint) *Context_ArgumentUint_Call

type Context_Argument_Call

type Context_Argument_Call struct {
	*mock.Call
}

Context_Argument_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Argument'

func (*Context_Argument_Call) Return

func (*Context_Argument_Call) Run

func (_c *Context_Argument_Call) Run(run func(index int)) *Context_Argument_Call

func (*Context_Argument_Call) RunAndReturn

func (_c *Context_Argument_Call) RunAndReturn(run func(int) string) *Context_Argument_Call

type Context_Arguments_Call

type Context_Arguments_Call struct {
	*mock.Call
}

Context_Arguments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Arguments'

func (*Context_Arguments_Call) Return

func (*Context_Arguments_Call) Run

func (_c *Context_Arguments_Call) Run(run func()) *Context_Arguments_Call

func (*Context_Arguments_Call) RunAndReturn

func (_c *Context_Arguments_Call) RunAndReturn(run func() []string) *Context_Arguments_Call

type Context_Ask_Call

type Context_Ask_Call struct {
	*mock.Call
}

Context_Ask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ask'

func (*Context_Ask_Call) Return

func (_c *Context_Ask_Call) Return(_a0 string, _a1 error) *Context_Ask_Call

func (*Context_Ask_Call) Run

func (_c *Context_Ask_Call) Run(run func(question string, option ...console.AskOption)) *Context_Ask_Call

func (*Context_Ask_Call) RunAndReturn

func (_c *Context_Ask_Call) RunAndReturn(run func(string, ...console.AskOption) (string, error)) *Context_Ask_Call

type Context_Black_Call added in v1.17.0

type Context_Black_Call struct {
	*mock.Call
}

Context_Black_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Black'

func (*Context_Black_Call) Return added in v1.17.0

func (_c *Context_Black_Call) Return() *Context_Black_Call

func (*Context_Black_Call) Run added in v1.17.0

func (_c *Context_Black_Call) Run(run func(message string)) *Context_Black_Call

func (*Context_Black_Call) RunAndReturn added in v1.17.0

func (_c *Context_Black_Call) RunAndReturn(run func(string)) *Context_Black_Call

type Context_Blackln_Call added in v1.17.0

type Context_Blackln_Call struct {
	*mock.Call
}

Context_Blackln_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Blackln'

func (*Context_Blackln_Call) Return added in v1.17.0

func (*Context_Blackln_Call) Run added in v1.17.0

func (_c *Context_Blackln_Call) Run(run func(message string)) *Context_Blackln_Call

func (*Context_Blackln_Call) RunAndReturn added in v1.17.0

func (_c *Context_Blackln_Call) RunAndReturn(run func(string)) *Context_Blackln_Call

type Context_Choice_Call

type Context_Choice_Call struct {
	*mock.Call
}

Context_Choice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Choice'

func (*Context_Choice_Call) Return

func (_c *Context_Choice_Call) Return(_a0 string, _a1 error) *Context_Choice_Call

func (*Context_Choice_Call) Run

func (_c *Context_Choice_Call) Run(run func(question string, options []console.Choice, option ...console.ChoiceOption)) *Context_Choice_Call

func (*Context_Choice_Call) RunAndReturn

type Context_Comment_Call

type Context_Comment_Call struct {
	*mock.Call
}

Context_Comment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Comment'

func (*Context_Comment_Call) Return

func (*Context_Comment_Call) Run

func (_c *Context_Comment_Call) Run(run func(message string)) *Context_Comment_Call

func (*Context_Comment_Call) RunAndReturn

func (_c *Context_Comment_Call) RunAndReturn(run func(string)) *Context_Comment_Call

type Context_Confirm_Call

type Context_Confirm_Call struct {
	*mock.Call
}

Context_Confirm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Confirm'

func (*Context_Confirm_Call) Return

func (*Context_Confirm_Call) Run

func (_c *Context_Confirm_Call) Run(run func(question string, option ...console.ConfirmOption)) *Context_Confirm_Call

func (*Context_Confirm_Call) RunAndReturn

func (_c *Context_Confirm_Call) RunAndReturn(run func(string, ...console.ConfirmOption) bool) *Context_Confirm_Call

type Context_CreateProgressBar_Call

type Context_CreateProgressBar_Call struct {
	*mock.Call
}

Context_CreateProgressBar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProgressBar'

func (*Context_CreateProgressBar_Call) Return

func (*Context_CreateProgressBar_Call) Run

func (*Context_CreateProgressBar_Call) RunAndReturn

type Context_Divider_Call added in v1.17.0

type Context_Divider_Call struct {
	*mock.Call
}

Context_Divider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Divider'

func (*Context_Divider_Call) Return added in v1.17.0

func (*Context_Divider_Call) Run added in v1.17.0

func (_c *Context_Divider_Call) Run(run func(filler ...string)) *Context_Divider_Call

func (*Context_Divider_Call) RunAndReturn added in v1.17.0

func (_c *Context_Divider_Call) RunAndReturn(run func(...string)) *Context_Divider_Call

type Context_Error_Call

type Context_Error_Call struct {
	*mock.Call
}

Context_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'

func (*Context_Error_Call) Return

func (_c *Context_Error_Call) Return() *Context_Error_Call

func (*Context_Error_Call) Run

func (_c *Context_Error_Call) Run(run func(message string)) *Context_Error_Call

func (*Context_Error_Call) RunAndReturn

func (_c *Context_Error_Call) RunAndReturn(run func(string)) *Context_Error_Call

type Context_Expecter

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

func (*Context_Expecter) Argument

func (_e *Context_Expecter) Argument(index interface{}) *Context_Argument_Call

Argument is a helper method to define mock.On call

  • index int

func (*Context_Expecter) ArgumentFloat32 added in v1.17.0

func (_e *Context_Expecter) ArgumentFloat32(key interface{}) *Context_ArgumentFloat32_Call

ArgumentFloat32 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentFloat32Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentFloat32Slice(key interface{}) *Context_ArgumentFloat32Slice_Call

ArgumentFloat32Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentFloat64 added in v1.17.0

func (_e *Context_Expecter) ArgumentFloat64(key interface{}) *Context_ArgumentFloat64_Call

ArgumentFloat64 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentFloat64Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentFloat64Slice(key interface{}) *Context_ArgumentFloat64Slice_Call

ArgumentFloat64Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt added in v1.17.0

func (_e *Context_Expecter) ArgumentInt(key interface{}) *Context_ArgumentInt_Call

ArgumentInt is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt16 added in v1.17.0

func (_e *Context_Expecter) ArgumentInt16(key interface{}) *Context_ArgumentInt16_Call

ArgumentInt16 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt16Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentInt16Slice(key interface{}) *Context_ArgumentInt16Slice_Call

ArgumentInt16Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt32 added in v1.17.0

func (_e *Context_Expecter) ArgumentInt32(key interface{}) *Context_ArgumentInt32_Call

ArgumentInt32 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt32Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentInt32Slice(key interface{}) *Context_ArgumentInt32Slice_Call

ArgumentInt32Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt64 added in v1.17.0

func (_e *Context_Expecter) ArgumentInt64(key interface{}) *Context_ArgumentInt64_Call

ArgumentInt64 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt64Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentInt64Slice(key interface{}) *Context_ArgumentInt64Slice_Call

ArgumentInt64Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt8 added in v1.17.0

func (_e *Context_Expecter) ArgumentInt8(key interface{}) *Context_ArgumentInt8_Call

ArgumentInt8 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentInt8Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentInt8Slice(key interface{}) *Context_ArgumentInt8Slice_Call

ArgumentInt8Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentIntSlice added in v1.17.0

func (_e *Context_Expecter) ArgumentIntSlice(key interface{}) *Context_ArgumentIntSlice_Call

ArgumentIntSlice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentString added in v1.17.0

func (_e *Context_Expecter) ArgumentString(key interface{}) *Context_ArgumentString_Call

ArgumentString is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentStringSlice added in v1.17.0

func (_e *Context_Expecter) ArgumentStringSlice(key interface{}) *Context_ArgumentStringSlice_Call

ArgumentStringSlice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentTimestamp added in v1.17.0

func (_e *Context_Expecter) ArgumentTimestamp(key interface{}) *Context_ArgumentTimestamp_Call

ArgumentTimestamp is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentTimestampSlice added in v1.17.0

func (_e *Context_Expecter) ArgumentTimestampSlice(key interface{}) *Context_ArgumentTimestampSlice_Call

ArgumentTimestampSlice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint added in v1.17.0

func (_e *Context_Expecter) ArgumentUint(key interface{}) *Context_ArgumentUint_Call

ArgumentUint is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint16 added in v1.17.0

func (_e *Context_Expecter) ArgumentUint16(key interface{}) *Context_ArgumentUint16_Call

ArgumentUint16 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint16Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentUint16Slice(key interface{}) *Context_ArgumentUint16Slice_Call

ArgumentUint16Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint32 added in v1.17.0

func (_e *Context_Expecter) ArgumentUint32(key interface{}) *Context_ArgumentUint32_Call

ArgumentUint32 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint32Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentUint32Slice(key interface{}) *Context_ArgumentUint32Slice_Call

ArgumentUint32Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint64 added in v1.17.0

func (_e *Context_Expecter) ArgumentUint64(key interface{}) *Context_ArgumentUint64_Call

ArgumentUint64 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint64Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentUint64Slice(key interface{}) *Context_ArgumentUint64Slice_Call

ArgumentUint64Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint8 added in v1.17.0

func (_e *Context_Expecter) ArgumentUint8(key interface{}) *Context_ArgumentUint8_Call

ArgumentUint8 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUint8Slice added in v1.17.0

func (_e *Context_Expecter) ArgumentUint8Slice(key interface{}) *Context_ArgumentUint8Slice_Call

ArgumentUint8Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) ArgumentUintSlice added in v1.17.0

func (_e *Context_Expecter) ArgumentUintSlice(key interface{}) *Context_ArgumentUintSlice_Call

ArgumentUintSlice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) Arguments

func (_e *Context_Expecter) Arguments() *Context_Arguments_Call

Arguments is a helper method to define mock.On call

func (*Context_Expecter) Ask

func (_e *Context_Expecter) Ask(question interface{}, option ...interface{}) *Context_Ask_Call

Ask is a helper method to define mock.On call

  • question string
  • option ...console.AskOption

func (*Context_Expecter) Black added in v1.17.0

func (_e *Context_Expecter) Black(message interface{}) *Context_Black_Call

Black is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Blackln added in v1.17.0

func (_e *Context_Expecter) Blackln(message interface{}) *Context_Blackln_Call

Blackln is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Choice

func (_e *Context_Expecter) Choice(question interface{}, options interface{}, option ...interface{}) *Context_Choice_Call

Choice is a helper method to define mock.On call

  • question string
  • options []console.Choice
  • option ...console.ChoiceOption

func (*Context_Expecter) Comment

func (_e *Context_Expecter) Comment(message interface{}) *Context_Comment_Call

Comment is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Confirm

func (_e *Context_Expecter) Confirm(question interface{}, option ...interface{}) *Context_Confirm_Call

Confirm is a helper method to define mock.On call

  • question string
  • option ...console.ConfirmOption

func (*Context_Expecter) CreateProgressBar

func (_e *Context_Expecter) CreateProgressBar(total interface{}) *Context_CreateProgressBar_Call

CreateProgressBar is a helper method to define mock.On call

  • total int

func (*Context_Expecter) Divider added in v1.17.0

func (_e *Context_Expecter) Divider(filler ...interface{}) *Context_Divider_Call

Divider is a helper method to define mock.On call

  • filler ...string

func (*Context_Expecter) Error

func (_e *Context_Expecter) Error(message interface{}) *Context_Error_Call

Error is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Green added in v1.17.0

func (_e *Context_Expecter) Green(message interface{}) *Context_Green_Call

Green is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Greenln added in v1.17.0

func (_e *Context_Expecter) Greenln(message interface{}) *Context_Greenln_Call

Greenln is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Info

func (_e *Context_Expecter) Info(message interface{}) *Context_Info_Call

Info is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Instance added in v1.16.4

func (_e *Context_Expecter) Instance() *Context_Instance_Call

Instance is a helper method to define mock.On call

func (*Context_Expecter) Line

func (_e *Context_Expecter) Line(message interface{}) *Context_Line_Call

Line is a helper method to define mock.On call

  • message string

func (*Context_Expecter) MultiSelect

func (_e *Context_Expecter) MultiSelect(question interface{}, options interface{}, option ...interface{}) *Context_MultiSelect_Call

MultiSelect is a helper method to define mock.On call

  • question string
  • options []console.Choice
  • option ...console.MultiSelectOption

func (*Context_Expecter) NewLine

func (_e *Context_Expecter) NewLine(times ...interface{}) *Context_NewLine_Call

NewLine is a helper method to define mock.On call

  • times ...int

func (*Context_Expecter) Option

func (_e *Context_Expecter) Option(key interface{}) *Context_Option_Call

Option is a helper method to define mock.On call

  • key string

func (*Context_Expecter) OptionBool

func (_e *Context_Expecter) OptionBool(key interface{}) *Context_OptionBool_Call

OptionBool is a helper method to define mock.On call

  • key string

func (*Context_Expecter) OptionFloat64

func (_e *Context_Expecter) OptionFloat64(key interface{}) *Context_OptionFloat64_Call

OptionFloat64 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) OptionFloat64Slice

func (_e *Context_Expecter) OptionFloat64Slice(key interface{}) *Context_OptionFloat64Slice_Call

OptionFloat64Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) OptionInt

func (_e *Context_Expecter) OptionInt(key interface{}) *Context_OptionInt_Call

OptionInt is a helper method to define mock.On call

  • key string

func (*Context_Expecter) OptionInt64

func (_e *Context_Expecter) OptionInt64(key interface{}) *Context_OptionInt64_Call

OptionInt64 is a helper method to define mock.On call

  • key string

func (*Context_Expecter) OptionInt64Slice

func (_e *Context_Expecter) OptionInt64Slice(key interface{}) *Context_OptionInt64Slice_Call

OptionInt64Slice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) OptionIntSlice

func (_e *Context_Expecter) OptionIntSlice(key interface{}) *Context_OptionIntSlice_Call

OptionIntSlice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) OptionSlice

func (_e *Context_Expecter) OptionSlice(key interface{}) *Context_OptionSlice_Call

OptionSlice is a helper method to define mock.On call

  • key string

func (*Context_Expecter) Red added in v1.17.0

func (_e *Context_Expecter) Red(message interface{}) *Context_Red_Call

Red is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Redln added in v1.17.0

func (_e *Context_Expecter) Redln(message interface{}) *Context_Redln_Call

Redln is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Secret

func (_e *Context_Expecter) Secret(question interface{}, option ...interface{}) *Context_Secret_Call

Secret is a helper method to define mock.On call

  • question string
  • option ...console.SecretOption

func (*Context_Expecter) Spinner

func (_e *Context_Expecter) Spinner(message interface{}, option interface{}) *Context_Spinner_Call

Spinner is a helper method to define mock.On call

  • message string
  • option console.SpinnerOption

func (*Context_Expecter) Success added in v1.15.0

func (_e *Context_Expecter) Success(message interface{}) *Context_Success_Call

Success is a helper method to define mock.On call

  • message string

func (*Context_Expecter) TwoColumnDetail added in v1.15.0

func (_e *Context_Expecter) TwoColumnDetail(first interface{}, second interface{}, filler ...interface{}) *Context_TwoColumnDetail_Call

TwoColumnDetail is a helper method to define mock.On call

  • first string
  • second string
  • filler ...rune

func (*Context_Expecter) Warning

func (_e *Context_Expecter) Warning(message interface{}) *Context_Warning_Call

Warning is a helper method to define mock.On call

  • message string

func (*Context_Expecter) WithProgressBar

func (_e *Context_Expecter) WithProgressBar(items interface{}, callback interface{}) *Context_WithProgressBar_Call

WithProgressBar is a helper method to define mock.On call

  • items []interface{}
  • callback func(interface{}) error

func (*Context_Expecter) Yellow added in v1.17.0

func (_e *Context_Expecter) Yellow(message interface{}) *Context_Yellow_Call

Yellow is a helper method to define mock.On call

  • message string

func (*Context_Expecter) Yellowln added in v1.17.0

func (_e *Context_Expecter) Yellowln(message interface{}) *Context_Yellowln_Call

Yellowln is a helper method to define mock.On call

  • message string

type Context_Green_Call added in v1.17.0

type Context_Green_Call struct {
	*mock.Call
}

Context_Green_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Green'

func (*Context_Green_Call) Return added in v1.17.0

func (_c *Context_Green_Call) Return() *Context_Green_Call

func (*Context_Green_Call) Run added in v1.17.0

func (_c *Context_Green_Call) Run(run func(message string)) *Context_Green_Call

func (*Context_Green_Call) RunAndReturn added in v1.17.0

func (_c *Context_Green_Call) RunAndReturn(run func(string)) *Context_Green_Call

type Context_Greenln_Call added in v1.17.0

type Context_Greenln_Call struct {
	*mock.Call
}

Context_Greenln_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Greenln'

func (*Context_Greenln_Call) Return added in v1.17.0

func (*Context_Greenln_Call) Run added in v1.17.0

func (_c *Context_Greenln_Call) Run(run func(message string)) *Context_Greenln_Call

func (*Context_Greenln_Call) RunAndReturn added in v1.17.0

func (_c *Context_Greenln_Call) RunAndReturn(run func(string)) *Context_Greenln_Call

type Context_Info_Call

type Context_Info_Call struct {
	*mock.Call
}

Context_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*Context_Info_Call) Return

func (_c *Context_Info_Call) Return() *Context_Info_Call

func (*Context_Info_Call) Run

func (_c *Context_Info_Call) Run(run func(message string)) *Context_Info_Call

func (*Context_Info_Call) RunAndReturn

func (_c *Context_Info_Call) RunAndReturn(run func(string)) *Context_Info_Call

type Context_Instance_Call added in v1.16.4

type Context_Instance_Call struct {
	*mock.Call
}

Context_Instance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Instance'

func (*Context_Instance_Call) Return added in v1.16.4

func (*Context_Instance_Call) Run added in v1.16.4

func (_c *Context_Instance_Call) Run(run func()) *Context_Instance_Call

func (*Context_Instance_Call) RunAndReturn added in v1.16.4

func (_c *Context_Instance_Call) RunAndReturn(run func() *cli.Command) *Context_Instance_Call

type Context_Line_Call

type Context_Line_Call struct {
	*mock.Call
}

Context_Line_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Line'

func (*Context_Line_Call) Return

func (_c *Context_Line_Call) Return() *Context_Line_Call

func (*Context_Line_Call) Run

func (_c *Context_Line_Call) Run(run func(message string)) *Context_Line_Call

func (*Context_Line_Call) RunAndReturn

func (_c *Context_Line_Call) RunAndReturn(run func(string)) *Context_Line_Call

type Context_MultiSelect_Call

type Context_MultiSelect_Call struct {
	*mock.Call
}

Context_MultiSelect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSelect'

func (*Context_MultiSelect_Call) Return

func (*Context_MultiSelect_Call) Run

func (_c *Context_MultiSelect_Call) Run(run func(question string, options []console.Choice, option ...console.MultiSelectOption)) *Context_MultiSelect_Call

func (*Context_MultiSelect_Call) RunAndReturn

type Context_NewLine_Call

type Context_NewLine_Call struct {
	*mock.Call
}

Context_NewLine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewLine'

func (*Context_NewLine_Call) Return

func (*Context_NewLine_Call) Run

func (_c *Context_NewLine_Call) Run(run func(times ...int)) *Context_NewLine_Call

func (*Context_NewLine_Call) RunAndReturn

func (_c *Context_NewLine_Call) RunAndReturn(run func(...int)) *Context_NewLine_Call

type Context_OptionBool_Call

type Context_OptionBool_Call struct {
	*mock.Call
}

Context_OptionBool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionBool'

func (*Context_OptionBool_Call) Return

func (*Context_OptionBool_Call) Run

func (_c *Context_OptionBool_Call) Run(run func(key string)) *Context_OptionBool_Call

func (*Context_OptionBool_Call) RunAndReturn

func (_c *Context_OptionBool_Call) RunAndReturn(run func(string) bool) *Context_OptionBool_Call

type Context_OptionFloat64Slice_Call

type Context_OptionFloat64Slice_Call struct {
	*mock.Call
}

Context_OptionFloat64Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionFloat64Slice'

func (*Context_OptionFloat64Slice_Call) Return

func (*Context_OptionFloat64Slice_Call) Run

func (*Context_OptionFloat64Slice_Call) RunAndReturn

type Context_OptionFloat64_Call

type Context_OptionFloat64_Call struct {
	*mock.Call
}

Context_OptionFloat64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionFloat64'

func (*Context_OptionFloat64_Call) Return

func (*Context_OptionFloat64_Call) Run

func (*Context_OptionFloat64_Call) RunAndReturn

type Context_OptionInt64Slice_Call

type Context_OptionInt64Slice_Call struct {
	*mock.Call
}

Context_OptionInt64Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionInt64Slice'

func (*Context_OptionInt64Slice_Call) Return

func (*Context_OptionInt64Slice_Call) Run

func (*Context_OptionInt64Slice_Call) RunAndReturn

type Context_OptionInt64_Call

type Context_OptionInt64_Call struct {
	*mock.Call
}

Context_OptionInt64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionInt64'

func (*Context_OptionInt64_Call) Return

func (*Context_OptionInt64_Call) Run

func (*Context_OptionInt64_Call) RunAndReturn

func (_c *Context_OptionInt64_Call) RunAndReturn(run func(string) int64) *Context_OptionInt64_Call

type Context_OptionIntSlice_Call

type Context_OptionIntSlice_Call struct {
	*mock.Call
}

Context_OptionIntSlice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionIntSlice'

func (*Context_OptionIntSlice_Call) Return

func (*Context_OptionIntSlice_Call) Run

func (*Context_OptionIntSlice_Call) RunAndReturn

func (_c *Context_OptionIntSlice_Call) RunAndReturn(run func(string) []int) *Context_OptionIntSlice_Call

type Context_OptionInt_Call

type Context_OptionInt_Call struct {
	*mock.Call
}

Context_OptionInt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionInt'

func (*Context_OptionInt_Call) Return

func (*Context_OptionInt_Call) Run

func (_c *Context_OptionInt_Call) Run(run func(key string)) *Context_OptionInt_Call

func (*Context_OptionInt_Call) RunAndReturn

func (_c *Context_OptionInt_Call) RunAndReturn(run func(string) int) *Context_OptionInt_Call

type Context_OptionSlice_Call

type Context_OptionSlice_Call struct {
	*mock.Call
}

Context_OptionSlice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionSlice'

func (*Context_OptionSlice_Call) Return

func (*Context_OptionSlice_Call) Run

func (*Context_OptionSlice_Call) RunAndReturn

func (_c *Context_OptionSlice_Call) RunAndReturn(run func(string) []string) *Context_OptionSlice_Call

type Context_Option_Call

type Context_Option_Call struct {
	*mock.Call
}

Context_Option_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Option'

func (*Context_Option_Call) Return

func (*Context_Option_Call) Run

func (_c *Context_Option_Call) Run(run func(key string)) *Context_Option_Call

func (*Context_Option_Call) RunAndReturn

func (_c *Context_Option_Call) RunAndReturn(run func(string) string) *Context_Option_Call

type Context_Red_Call added in v1.17.0

type Context_Red_Call struct {
	*mock.Call
}

Context_Red_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Red'

func (*Context_Red_Call) Return added in v1.17.0

func (_c *Context_Red_Call) Return() *Context_Red_Call

func (*Context_Red_Call) Run added in v1.17.0

func (_c *Context_Red_Call) Run(run func(message string)) *Context_Red_Call

func (*Context_Red_Call) RunAndReturn added in v1.17.0

func (_c *Context_Red_Call) RunAndReturn(run func(string)) *Context_Red_Call

type Context_Redln_Call added in v1.17.0

type Context_Redln_Call struct {
	*mock.Call
}

Context_Redln_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Redln'

func (*Context_Redln_Call) Return added in v1.17.0

func (_c *Context_Redln_Call) Return() *Context_Redln_Call

func (*Context_Redln_Call) Run added in v1.17.0

func (_c *Context_Redln_Call) Run(run func(message string)) *Context_Redln_Call

func (*Context_Redln_Call) RunAndReturn added in v1.17.0

func (_c *Context_Redln_Call) RunAndReturn(run func(string)) *Context_Redln_Call

type Context_Secret_Call

type Context_Secret_Call struct {
	*mock.Call
}

Context_Secret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Secret'

func (*Context_Secret_Call) Return

func (_c *Context_Secret_Call) Return(_a0 string, _a1 error) *Context_Secret_Call

func (*Context_Secret_Call) Run

func (_c *Context_Secret_Call) Run(run func(question string, option ...console.SecretOption)) *Context_Secret_Call

func (*Context_Secret_Call) RunAndReturn

func (_c *Context_Secret_Call) RunAndReturn(run func(string, ...console.SecretOption) (string, error)) *Context_Secret_Call

type Context_Spinner_Call

type Context_Spinner_Call struct {
	*mock.Call
}

Context_Spinner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Spinner'

func (*Context_Spinner_Call) Return

func (*Context_Spinner_Call) Run

func (_c *Context_Spinner_Call) Run(run func(message string, option console.SpinnerOption)) *Context_Spinner_Call

func (*Context_Spinner_Call) RunAndReturn

type Context_Success_Call added in v1.15.0

type Context_Success_Call struct {
	*mock.Call
}

Context_Success_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Success'

func (*Context_Success_Call) Return added in v1.15.0

func (*Context_Success_Call) Run added in v1.15.0

func (_c *Context_Success_Call) Run(run func(message string)) *Context_Success_Call

func (*Context_Success_Call) RunAndReturn added in v1.15.0

func (_c *Context_Success_Call) RunAndReturn(run func(string)) *Context_Success_Call

type Context_TwoColumnDetail_Call added in v1.15.0

type Context_TwoColumnDetail_Call struct {
	*mock.Call
}

Context_TwoColumnDetail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TwoColumnDetail'

func (*Context_TwoColumnDetail_Call) Return added in v1.15.0

func (*Context_TwoColumnDetail_Call) Run added in v1.15.0

func (_c *Context_TwoColumnDetail_Call) Run(run func(first string, second string, filler ...rune)) *Context_TwoColumnDetail_Call

func (*Context_TwoColumnDetail_Call) RunAndReturn added in v1.15.0

type Context_Warning_Call

type Context_Warning_Call struct {
	*mock.Call
}

Context_Warning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warning'

func (*Context_Warning_Call) Return

func (*Context_Warning_Call) Run

func (_c *Context_Warning_Call) Run(run func(message string)) *Context_Warning_Call

func (*Context_Warning_Call) RunAndReturn

func (_c *Context_Warning_Call) RunAndReturn(run func(string)) *Context_Warning_Call

type Context_WithProgressBar_Call

type Context_WithProgressBar_Call struct {
	*mock.Call
}

Context_WithProgressBar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithProgressBar'

func (*Context_WithProgressBar_Call) Return

func (_c *Context_WithProgressBar_Call) Return(_a0 []interface{}, _a1 error) *Context_WithProgressBar_Call

func (*Context_WithProgressBar_Call) Run

func (_c *Context_WithProgressBar_Call) Run(run func(items []interface{}, callback func(interface{}) error)) *Context_WithProgressBar_Call

func (*Context_WithProgressBar_Call) RunAndReturn

func (_c *Context_WithProgressBar_Call) RunAndReturn(run func([]interface{}, func(interface{}) error) ([]interface{}, error)) *Context_WithProgressBar_Call

type Context_Yellow_Call added in v1.17.0

type Context_Yellow_Call struct {
	*mock.Call
}

Context_Yellow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Yellow'

func (*Context_Yellow_Call) Return added in v1.17.0

func (*Context_Yellow_Call) Run added in v1.17.0

func (_c *Context_Yellow_Call) Run(run func(message string)) *Context_Yellow_Call

func (*Context_Yellow_Call) RunAndReturn added in v1.17.0

func (_c *Context_Yellow_Call) RunAndReturn(run func(string)) *Context_Yellow_Call

type Context_Yellowln_Call added in v1.17.0

type Context_Yellowln_Call struct {
	*mock.Call
}

Context_Yellowln_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Yellowln'

func (*Context_Yellowln_Call) Return added in v1.17.0

func (*Context_Yellowln_Call) Run added in v1.17.0

func (_c *Context_Yellowln_Call) Run(run func(message string)) *Context_Yellowln_Call

func (*Context_Yellowln_Call) RunAndReturn added in v1.17.0

func (_c *Context_Yellowln_Call) RunAndReturn(run func(string)) *Context_Yellowln_Call

type Progress

type Progress struct {
	mock.Mock
}

Progress is an autogenerated mock type for the Progress type

func NewProgress

func NewProgress(t interface {
	mock.TestingT
	Cleanup(func())
}) *Progress

NewProgress creates a new instance of Progress. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Progress) Advance

func (_m *Progress) Advance(step ...int)

Advance provides a mock function with given fields: step

func (*Progress) EXPECT

func (_m *Progress) EXPECT() *Progress_Expecter

func (*Progress) Finish

func (_m *Progress) Finish() error

Finish provides a mock function with no fields

func (*Progress) SetTitle

func (_m *Progress) SetTitle(message string)

SetTitle provides a mock function with given fields: message

func (*Progress) ShowElapsedTime

func (_m *Progress) ShowElapsedTime(b ...bool) console.Progress

ShowElapsedTime provides a mock function with given fields: b

func (*Progress) ShowTitle

func (_m *Progress) ShowTitle(b ...bool) console.Progress

ShowTitle provides a mock function with given fields: b

func (*Progress) Start

func (_m *Progress) Start() error

Start provides a mock function with no fields

type Progress_Advance_Call

type Progress_Advance_Call struct {
	*mock.Call
}

Progress_Advance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Advance'

func (*Progress_Advance_Call) Return

func (*Progress_Advance_Call) Run

func (_c *Progress_Advance_Call) Run(run func(step ...int)) *Progress_Advance_Call

func (*Progress_Advance_Call) RunAndReturn

func (_c *Progress_Advance_Call) RunAndReturn(run func(...int)) *Progress_Advance_Call

type Progress_Expecter

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

func (*Progress_Expecter) Advance

func (_e *Progress_Expecter) Advance(step ...interface{}) *Progress_Advance_Call

Advance is a helper method to define mock.On call

  • step ...int

func (*Progress_Expecter) Finish

Finish is a helper method to define mock.On call

func (*Progress_Expecter) SetTitle

func (_e *Progress_Expecter) SetTitle(message interface{}) *Progress_SetTitle_Call

SetTitle is a helper method to define mock.On call

  • message string

func (*Progress_Expecter) ShowElapsedTime

func (_e *Progress_Expecter) ShowElapsedTime(b ...interface{}) *Progress_ShowElapsedTime_Call

ShowElapsedTime is a helper method to define mock.On call

  • b ...bool

func (*Progress_Expecter) ShowTitle

func (_e *Progress_Expecter) ShowTitle(b ...interface{}) *Progress_ShowTitle_Call

ShowTitle is a helper method to define mock.On call

  • b ...bool

func (*Progress_Expecter) Start

Start is a helper method to define mock.On call

type Progress_Finish_Call

type Progress_Finish_Call struct {
	*mock.Call
}

Progress_Finish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finish'

func (*Progress_Finish_Call) Return

func (*Progress_Finish_Call) Run

func (_c *Progress_Finish_Call) Run(run func()) *Progress_Finish_Call

func (*Progress_Finish_Call) RunAndReturn

func (_c *Progress_Finish_Call) RunAndReturn(run func() error) *Progress_Finish_Call

type Progress_SetTitle_Call

type Progress_SetTitle_Call struct {
	*mock.Call
}

Progress_SetTitle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTitle'

func (*Progress_SetTitle_Call) Return

func (*Progress_SetTitle_Call) Run

func (_c *Progress_SetTitle_Call) Run(run func(message string)) *Progress_SetTitle_Call

func (*Progress_SetTitle_Call) RunAndReturn

func (_c *Progress_SetTitle_Call) RunAndReturn(run func(string)) *Progress_SetTitle_Call

type Progress_ShowElapsedTime_Call

type Progress_ShowElapsedTime_Call struct {
	*mock.Call
}

Progress_ShowElapsedTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowElapsedTime'

func (*Progress_ShowElapsedTime_Call) Return

func (*Progress_ShowElapsedTime_Call) Run

func (*Progress_ShowElapsedTime_Call) RunAndReturn

type Progress_ShowTitle_Call

type Progress_ShowTitle_Call struct {
	*mock.Call
}

Progress_ShowTitle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowTitle'

func (*Progress_ShowTitle_Call) Return

func (*Progress_ShowTitle_Call) Run

func (_c *Progress_ShowTitle_Call) Run(run func(b ...bool)) *Progress_ShowTitle_Call

func (*Progress_ShowTitle_Call) RunAndReturn

func (_c *Progress_ShowTitle_Call) RunAndReturn(run func(...bool) console.Progress) *Progress_ShowTitle_Call

type Progress_Start_Call

type Progress_Start_Call struct {
	*mock.Call
}

Progress_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*Progress_Start_Call) Return

func (*Progress_Start_Call) Run

func (_c *Progress_Start_Call) Run(run func()) *Progress_Start_Call

func (*Progress_Start_Call) RunAndReturn

func (_c *Progress_Start_Call) RunAndReturn(run func() error) *Progress_Start_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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