exec

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(sh string) error

Exec runs the sh script and forwards stderr/stdout to the console

func Execf

func Execf(sh string, args ...interface{}) error

Execf runs the sh script and forwards stderr/stdout to the console

func ExecfWithEnv

func ExecfWithEnv(sh string, env map[string]string, args ...interface{}) error

ExecfWithEnv runs the sh script and forwards stderr/stdout to the console

func SafeExec

func SafeExec(sh string, args ...interface{}) (string, bool)

SafeExec executes the sh script and returns the stdout and stderr, errors will result in a nil return only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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