exec

package
v0.8.36 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 5 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
	RunIO(ctx context.Context, iostreams genericclioptions.IOStreams, cmd string, args ...string) error
}

type FakeCmdRunner

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

func NewFakeCmdRunner added in v0.7.0

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

func (*FakeCmdRunner) Run

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

func (*FakeCmdRunner) RunIO added in v0.8.0

func (f *FakeCmdRunner) RunIO(ctx context.Context, iostreams genericclioptions.IOStreams, cmd string, args ...string) error

type RealCmdRunner

type RealCmdRunner struct{}

func (RealCmdRunner) Run

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

func (RealCmdRunner) RunIO added in v0.8.0

func (RealCmdRunner) RunIO(ctx context.Context, iostreams genericclioptions.IOStreams, cmd string, args ...string) error

Jump to

Keyboard shortcuts

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