command

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(cmd *exec.Cmd, param *CommandParam, opts ...CommandOpt) gopipe.Action

Types

type CommandOpt

type CommandOpt func(cmd *exec.Cmd) error

func Dir

func Dir(dir string) CommandOpt

func Env

func Env(name, value string) CommandOpt

func EnvMap

func EnvMap(m map[string]string) CommandOpt

func Envs

func Envs(envs []string) CommandOpt

func Stderr

func Stderr(w io.Writer) CommandOpt

func Stdout

func Stdout(w io.Writer) CommandOpt

type CommandParam

type CommandParam struct {
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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