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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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