Documentation
¶
Overview ¶
Package programs runs each program doit starts by its argv, within a bound. Every argv is built in doit's code from doit's own values, so a field read from elsewhere fills one argument and never adds one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShellJoin ¶
ShellJoin quotes each argument that a shell would split, so the command reads as it ran.
func SplitWords ¶
SplitWords splits text into words as Python's shlex.split does. Single quotes keep every character. Inside double quotes a backslash escapes only a double quote or a backslash, and stays before any other character.
Types ¶
type Failed ¶
type Failed struct {
Message string
TimedOut bool
// Exited is a program that ran and exited non-zero, with ExitCode.
Exited bool
ExitCode int
}
Failed is a program that was missing, timed out or exited non-zero. One that timed out may have done its work.