osutil

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmd

func ExecCmd(l zerolog.Logger, command string) error

ExecCmd executes a command and logs the output

func ExecCmdWithContext

func ExecCmdWithContext(ctx context.Context, l zerolog.Logger, command string) error

ExecCmdWithContext executes a command with ctx and logs the output

func ExecCmdWithOptions

func ExecCmdWithOptions(ctx context.Context, l zerolog.Logger, command string, outputFunction func(string)) error

ExecCmdWithOptions executes a command with ctx and logs the output with a custom logging func

func GetEnv

func GetEnv(key string) (string, error)

GetEnv returns the value of the environment variable named by the key and sets the environment variable up to be used in the remote runner

func SetupEnvVarsForRemoteRunner

func SetupEnvVarsForRemoteRunner(envVars []string) error

SetupEnvVarsForRemoteRunner sets up the environment variables in the list to propagate to the remote runner

Types

This section is empty.

Jump to

Keyboard shortcuts

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