subprocess

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New(ctx context.Context, name string, args ...string) *Config

func (*Config) CaptureStderrLines

func (cfg *Config) CaptureStderrLines() *Config

func (*Config) CaptureStdoutLines

func (cfg *Config) CaptureStdoutLines() *Config

func (*Config) SetEnv

func (cfg *Config) SetEnv(name, value string) *Config

func (*Config) Start

func (cfg *Config) Start() (*Subprocess, error)

func (*Config) UnsetEnv

func (cfg *Config) UnsetEnv(name string) *Config

type ExitStatus

type ExitStatus struct {
	Code  int
	Error error
}

type Subprocess

type Subprocess struct {
	PID    int
	Status <-chan *ExitStatus
	Stdout <-chan string
	Stderr <-chan string
}

Jump to

Keyboard shortcuts

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