Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExecInvalidTimeoutMsg is the error message that occurs when a timeout value is invalid ExecInvalidTimeoutMsg = `invalid timeout value "%s", it should be in the form "[123h][123m][123s]"` // ExecTimeoutMsg is the error message that occurs when a timeout is reached during commands execution ExecTimeoutMsg = `the build timed out after %s` )
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommandsWithTimeout ¶ added in v0.2.12
func ExecuteCommandsWithTimeout(commandsList []string, timeout string, path string, runIndicator bool) error
ExecuteCommandsWithTimeout parses the list of commands and executes them in the current working directory with a specified timeout. If the timeout is reached an error is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.