Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command returns a exec.Cmd struct to execute the named program with the given arguments. The parent death signal is set to SIGKILL for platforms that support it.
func CommandContext ¶
CommandContext is like Command but includes a context.
Types ¶
type Cmd ¶
type Cmd struct { // Before is called before the command is executed. Before func(*Cmd) error // Line is the command line to execute. Line string // Sources are used to substitute the $srcs in the command line. Sources []string // Sources are used to substitute the $tgts in the command line. Targets []string // Env is the environment to use for the command. Env map[string]string }
Click to show internal directories.
Click to hide internal directories.