process

package
v1.11.24-beta005 Latest Latest
Warning

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

Go to latest
Published: May 29, 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 ExecuteWithOptions added in v1.11.25

func ExecuteWithOptions(options Options) (out []byte, err error)

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

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

type Options added in v1.11.25

type Options struct {
	Command string
	Args    []string
	DryRun  bool
}

Jump to

Keyboard shortcuts

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