executil

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

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

Pipeline represents a series of commands linked by their stdout and stdin

func NewPipeline added in v0.0.27

func NewPipeline(cmds ...*exec.Cmd) (*Pipeline, error)

NewPipeline create a new pipeline, optionally with commands

func (*Pipeline) Append added in v0.0.27

func (p *Pipeline) Append(cmd *exec.Cmd) (err error)

Append adds a new command to the tail end of the pipeline, connecting its stdin to the stdout of the previous tail

func (*Pipeline) Execute added in v0.0.27

func (p *Pipeline) Execute() (out []byte, err error)

Execute starts each command in the pipeline and waits for their completion in reverse order, capturing the stdout of the last command

Jump to

Keyboard shortcuts

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