process

package
v1.9.22-beta003 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 added in v0.8.1

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 added in v0.8.1

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 added in v0.8.9

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