executil

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAndCaptureOutputIfError

func RunAndCaptureOutputIfError(command *exec.Cmd) (string, string, error)

RunAndCaptureOutputIfError runs the command, and if there's an error capture standard out and error and generate an error with all the info

Types

type ExecError

type ExecError struct {
	Command        *exec.Cmd
	Source         error
	StandardError  string
	StandardOutput string
}

ExecError represents an error during executing an external command.

func (*ExecError) Error

func (err *ExecError) Error() string

Jump to

Keyboard shortcuts

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