commander

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 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 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 (*MockCommander) Output

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

Output provides a mock function with given fields:

func (*MockCommander) String

func (_m *MockCommander) String() string

String provides a mock function with given fields:

Jump to

Keyboard shortcuts

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