process

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoEnviron []string // "MY_VAR=some_value"

Functions

func Execute

func Execute(command string, arguments ...string) (out []byte, err error)

Execute runs system command and returns whole output also in case of error

func ExecuteAsync

func ExecuteAsync(command string, arguments ...string) (cmd *exec.Cmd, err error)

ExecuteAsync runs system command and doesn't wait when it's completed.

func ExecuteAsyncInDir

func ExecuteAsyncInDir(dir string, command string, arguments ...string) (cmd *exec.Cmd, err error)

ExecuteAsyncInDir runs system command and doesn't wait when it's completed for specific directory.

func ExecuteInDir

func ExecuteInDir(dir string, command string, arguments ...string) (out []byte, err error)

ExecuteInDir runs system command and returns whole output also in case of error in a specific directory

func ExecuteString

func ExecuteString(command string) (out []byte, err error)

ExecuteString executes string based command.

func LoggedExecuteInDir

func LoggedExecuteInDir(dir string, writer io.Writer, command string, arguments ...string) (out []byte, err error)

LoggedExecuteInDir runs system command and returns whole output also in case of error in a specific directory with logging to writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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