exec

package
v1.2.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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 Execute

func Execute(cmdParams [][]string, runIndicator bool) error

Execute - Execute child process and wait to results

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.

func ExecuteWithTimeout added in v0.2.11

func ExecuteWithTimeout(cmdParams [][]string, timeout string, runIndicator bool) error

ExecuteWithTimeout executes child processes and waits for the results. If the timeout is reached an error is returned and the child process is killed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL