Documentation ¶
Index ¶
- func CheckExec(command string, commandLine ...string) error
- func CheckExecWithEnv(env []string, command string, commandLine ...string) error
- func CheckExecWithOutput(command string, commandLine ...string) (string, string, error)
- func GetFilePerms(filename string) (os.FileMode, error)
- func GetFileSize(filename string) (int64, error)
- func Interrupt()
- func LoggedCommand(command string, commandLine ...string) *exec.Cmd
- func MustExec(command string, commandLine ...string)
- func MustExecWithEnv(env []string, command string, commandLine ...string)
- func MustExecWithOutput(command string, commandLine ...string) (string, string)
- func MustExecutableFolder() string
- func MustGetFileSize(filename string) int64
- func MustLookupPaths(paths ...string)
- func MustPathExist(paths ...string)
- func MustPathNotExist(paths ...string)
- func PathExists(path string) bool
- func PathIsDir(path string) bool
- func PathIsSocket(path string) bool
- func PathNotExist(path string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExecWithEnv ¶
func CheckExecWithOutput ¶
Check for successful execution and return stdout and stderr as strings
func GetFileSize ¶
func Interrupt ¶
func Interrupt()
Calling this closes the interrupt channel, causes all executing processes to die (with a panic). This let's deferred clean up handlers run in the owning goroutine.
func LoggedCommand ¶
Returns a command object which logs its stdout/stderr
func MustExecWithEnv ¶
func MustExecWithOutput ¶
func MustExecutableFolder ¶
func MustExecutableFolder() string
Get the current executable's folder or fail
func MustGetFileSize ¶
func MustLookupPaths ¶
func MustLookupPaths(paths ...string)
Exit Panicly if paths do not exist as command executables
func PathIsSocket ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.