Documentation ¶
Index ¶
- Variables
- func CreateFile(filepath, content string) error
- func IsCommandAvailable(name string) bool
- func ValidateCommon() error
- type Exec
- type ExecOpt
- func DebugTo(w io.Writer) ExecOpt
- func InDir(dir string) ExecOpt
- func LogFunc(logf func(string, ...interface{})) ExecOpt
- func StderrTo(stderr io.Writer) ExecOpt
- func StdoutTo(stdout io.Writer) ExecOpt
- func WithArgs(args ...string) ExecOpt
- func WithEnv(env []string) ExecOpt
- func WithEnvs(envs ...string) ExecOpt
- func WithMapEnv(env map[string]string) ExecOpt
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateFile ¶
CreateFile create file with given content
func IsCommandAvailable ¶
IsCommandAvailable checks if command is available OS
func ValidateCommon ¶
func ValidateCommon() error
ValidateCommon validates variables necessary to start process
Types ¶
type Exec ¶ added in v0.11.0
type ExecOpt ¶ added in v0.11.0
func WithMapEnv ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.