Documentation
¶
Index ¶
- Variables
- func CreateProcess(cmdLine string) error
- func RunCommand(cmdLine string, successRegex string, failureRegex string) error
- func RunCommandEx(cmdLine string, successRegex string, failureRegex string, waitInSec int) error
- func RunCommandEx2(cmdLine string, successRegex string, failureRegex string, waitInSec int) error
- func RunCommandOutput(cmdLine string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrBufferCreateFailed creating the buffer failed ErrBufferCreateFailed = errors.New("Unable to create the buffer object") //ErrScannerCreateFailed creating the scanner failed ErrScannerCreateFailed = errors.New("Unable to create the scanner object") //ErrReaderCreateFailed creating the reader failed ErrReaderCreateFailed = errors.New("Unable to create the reader object") //ErrCommandCreateFailed creating the command failed ErrCommandCreateFailed = errors.New("Unable to create the command object") //ErrExecuteFailed installation package failed ErrExecuteFailed = errors.New("The command line failed to execute correctly") )
Functions ¶
func CreateProcess ¶
CreateProcess starts a new detached process
func RunCommand ¶
RunCommand executes a command that monitors output for success or failure
func RunCommandEx ¶
RunCommandEx executes a command that monitors output for success or failure
func RunCommandEx2 ¶
RunCommandEx2 executes a command that monitors output for success or failure
func RunCommandOutput ¶
RunCommandOutput executes a command that returns the output
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.