cmdutils

package
v0.0.0-...-ff9695f Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCommandFailed = fmt.Errorf("failed to execute command")
)

Functions

func Exec

func Exec(ctx context.Context, cmd string, opts ...Option) error

Types

type Option

type Option func(*Options)

func WithArgs

func WithArgs(args ...string) Option

func WithExecutor

func WithExecutor(executor executor) Option

func WithLogger

func WithLogger(logger logr.Logger) Option

func WithShellMode

func WithShellMode(shell string) Option

func WithStderr

func WithStderr(w io.Writer) Option

func WithStdout

func WithStdout(w io.Writer) Option

func WithWorkdir

func WithWorkdir(workdir string) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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