Documentation
¶
Overview ¶
Package executil holds tiny helpers shared by the exec runners.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EchoCommand ¶
EchoCommand writes the set -x-style echo line "+ <argv>\n" to w.
func ShellJoin ¶
ShellJoin renders argv as a shell-style command line: elements are joined with single spaces; any element containing whitespace or a single quote is single-quoted (each ' escaped as '\”), bash set -x style. Simple elements pass through unquoted. Empty argv joins to the empty string.
Types ¶
type LockedWriter ¶ added in v0.8.0
LockedWriter serializes concurrent writes to W. os/exec spawns one copy goroutine per stream when Stdout and Stderr are different writers, so two MultiWriters capturing into one bytes.Buffer race (and silently lose writes) without it.
Click to show internal directories.
Click to hide internal directories.