executor

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exec

type Exec struct {
	cmdutil.IOStreams
}

func (*Exec) Execute

func (tc *Exec) Execute(ctx context.Context, args []string, opts ...ExecOption) error

type ExecOption

type ExecOption func(*exec.Cmd)

type Executor

type Executor interface {
	Execute(context.Context, []string, ...ExecOption) error
}

type FakeExecutor

type FakeExecutor struct{}

func (*FakeExecutor) Execute

func (fe *FakeExecutor) Execute(ctx context.Context, args []string, opts ...ExecOption) error

type FakeExecutorEchoArgs

type FakeExecutorEchoArgs struct {
	Out io.Writer
}

Fake that prints any args to stdout

func (*FakeExecutorEchoArgs) Execute

func (fe *FakeExecutorEchoArgs) Execute(ctx context.Context, args []string, opts ...ExecOption) error

type FakeExecutorMissingWorkspace

type FakeExecutorMissingWorkspace struct {
	Out io.Writer
}

func (*FakeExecutorMissingWorkspace) Execute

func (fe *FakeExecutorMissingWorkspace) Execute(ctx context.Context, args []string, opts ...ExecOption) error

Jump to

Keyboard shortcuts

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