exec

package
v0.0.0-...-d02d248 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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 Executor

type Executor struct {
	Stdout io.Writer
	Stderr io.Writer
}

Executor executes the command using the os/exec package

func (*Executor) CombinedOutput

func (e *Executor) CombinedOutput(bin string, args ...string) ([]byte, error)

func (*Executor) Run

func (e *Executor) Run(cmdStr string, args ...interface{}) error

Run runs the command

Jump to

Keyboard shortcuts

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