exec

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRunner

type CmdRunner interface {
	Run(ctx context.Context, cmd string, args ...string) error
}

type FakeCmdRunner

type FakeCmdRunner struct {
	LastArgs []string
	// contains filtered or unexported fields
}

func NewFakeCmdRunner added in v0.7.0

func NewFakeCmdRunner(handler func(argv []string)) *FakeCmdRunner

func (*FakeCmdRunner) Run

func (f *FakeCmdRunner) Run(ctx context.Context, cmd string, args ...string) error

type RealCmdRunner

type RealCmdRunner struct{}

func (RealCmdRunner) Run

func (RealCmdRunner) Run(ctx context.Context, cmd string, args ...string) error

Jump to

Keyboard shortcuts

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