os

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: UPL-1.0 Imports: 3 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(cmd *exec.Cmd) (stdout []byte, stderr []byte, err error)
}

CmdRunner defines the interface to run an external command

type DefaultRunner

type DefaultRunner struct {
}

DefaultRunner is used to run an external command

func (DefaultRunner) Run

func (r DefaultRunner) Run(cmd *exec.Cmd) (stdout []byte, stderr []byte, err error)

Run runs an external command. The caller is expected to initialize the cmd name and args, for example using exec.Command(...)

Jump to

Keyboard shortcuts

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