Documentation ¶
Index ¶
- func AttrExecute(attr *syscall.SysProcAttr, name string, arg ...string) (string, string, error)
- func AttrExecuteQuiet(attr *syscall.SysProcAttr, name string, arg ...string) (string, string, error)
- func CloseExtraFds() error
- func EnvExecute(env []string, name string, arg ...string) (string, string, error)
- func EnvExecuteQuiet(env []string, name string, arg ...string) (string, string, error)
- func Exec(name string, arg ...string) error
- func Execute(name string, arg ...string) (string, string, error)
- func ExecuteQuiet(name string, arg ...string) (string, string, error)
- func IsTerminal(fd uintptr) bool
- func TimedExecute(timeout int, env []string, name string, arg ...string) (string, string, error)
- func TimedExecuteQuiet(timeout int, env []string, name string, arg ...string) (string, string, error)
- func WaitExit(timeout int, cmd *exec.Cmd, commandLine string, quiet bool) error
- type Colorizer
- type SignalExit
- type StatusExit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttrExecute ¶
func AttrExecuteQuiet ¶
func CloseExtraFds ¶
func CloseExtraFds() error
CloseExtraFds closes any open file descriptors other than stdout, stdin, and stderr. This is good hygeine before execing another process.
func EnvExecuteQuiet ¶
func IsTerminal ¶
IsTerminal returns true if the given file descriptor is a terminal.
func TimedExecute ¶
func TimedExecuteQuiet ¶
Types ¶
type Colorizer ¶
type Colorizer struct {
// contains filtered or unexported fields
}
Colorizer is an io.Writer that colorizes console output.
type SignalExit ¶
SignalExit means the command exited via signal
func (SignalExit) Error ¶
func (s SignalExit) Error() string
type StatusExit ¶
StatusExit means the command exited with a non-zero exit code
func (StatusExit) Error ¶
func (s StatusExit) Error() string
Click to show internal directories.
Click to hide internal directories.