Documentation ¶
Overview ¶
Utilities for invoking exec. Mainly focused on 'go build' and cross-compilation
Index ¶
- Variables
- func CgoEnabled(goos, arch string) string
- func CombineActualEnv(env []string, isVeryVerbose bool) []string
- func InvokeGo(workingDirectory string, subCmd string, subCmdArgs []string, env []string, ...) error
- func NewCmd(cmdPath string, workingDirectory string, args []string, env []string, ...) (*exec.Cmd, error)
- func PrepareCmd(cmd *exec.Cmd, workingDirectory string, args []string, env []string, ...) error
- func PrintableArgs(args []string) string
- func RedirectIO(cmd *exec.Cmd)
- func RedirectIOTo(cmd *exec.Cmd, myin io.Reader, myout, myerr io.Writer)
- func StartAndWait(cmd *exec.Cmd) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BUILD_COMMANDS = []string{"build", "install"}
)
Functions ¶
func CgoEnabled ¶
check if cgoEnabled is required. 0.2.4 refactored this out TODO not needed for go1.1+. Remove this once go1.0 reaches end of life. (when is that?)
func CombineActualEnv ¶
func InvokeGo ¶
func InvokeGo(workingDirectory string, subCmd string, subCmdArgs []string, env []string, settings *config.Settings) error
invoke the go command via the os/exec package 0.3.1 v0.9 changed signature
func PrepareCmd ¶
func RedirectIO ¶
func StartAndWait ¶
StartAndWait starts the given command and waits for it to exit. If the command started successfully but exited with an error, any output to stderr is included in the error message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.