process

package
v0.0.0-...-2a3f13b Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrintToStdOutHandler = func(line *string) {
		_, _ = os.Stdout.WriteString(*line + "\n")
	}
	PrintToStdErrHandler = func(line *string) {
		_, _ = os.Stderr.WriteString(*line + "\n")
	}
	PrintToDebugHandler = func(line *string) {
		log.Debug(*line)
	}
	NullHandler = func(line *string) {}
)

Functions

This section is empty.

Types

type Process

type Process struct {
	Cmd           *cmd.Cmd
	Args          []string
	DefaultArgs   []string
	StdOutHandler func(*string)
	StdErrHandler func(*string)
}

func New

func New(args []string, cfg config.ConfigMap) *Process

func (*Process) CaptureOutputLines

func (p *Process) CaptureOutputLines(stdOutCallback func(*string), stdErrCallback func(*string))

func (*Process) SetBothOutHandlers

func (p *Process) SetBothOutHandlers(handler func(*string))

func (*Process) StartProcess

func (p *Process) StartProcess(replacements map[string]string) <-chan cmd.Status

func (*Process) WaitForOutput

func (p *Process) WaitForOutput()

Jump to

Keyboard shortcuts

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