commander

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander

type Commander interface {
	Output() ([]byte, error)
	String() string
}

func New

func New(ctx context.Context, command, wd string, args ...string) Commander

type Factory

type Factory func(ctx context.Context, command string, args ...string) Commander

type MockCommander

type MockCommander struct {
	mock.Mock
}

MockCommander is an autogenerated mock type for the Commander type

func NewMockCommander added in v0.7.0

func NewMockCommander(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCommander

NewMockCommander creates a new instance of MockCommander. 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 (*MockCommander) Output

func (_m *MockCommander) Output() ([]byte, error)

Output provides a mock function with no fields

func (*MockCommander) String

func (_m *MockCommander) String() string

String provides a mock function with no fields

Jump to

Keyboard shortcuts

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