runcmd

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProcessTerminated = errors.New("process was terminated by a signal")

Functions

This section is empty.

Types

type ExecParams

type ExecParams struct {
	PWD  string
	CMD  string
	Args []string
}

type Runner

type Runner struct{}

func (*Runner) Exec

func (*Runner) Exec(ctx context.Context, params *ExecParams) (string, error)

Exec the command defined in the provided params.

type RunnerIface

type RunnerIface interface {
	Exec(ctx context.Context, params *ExecParams) (string, error)
}

Jump to

Keyboard shortcuts

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