exec

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogErrorAsExitCode added in v1.12.0

func LogErrorAsExitCode(err error, log logrus.FieldLogger)

func RunCommand

func RunCommand(cmd *exec.Cmd) (string, string, error)

RunCommand runs a command and returns its stdout, stderr, and its returned error (if any). If there are errors reading stdout or stderr, their return value(s) will contain the error as a string.

func RunCommandWithLog added in v1.12.0

func RunCommandWithLog(cmd *exec.Cmd, log logrus.FieldLogger) (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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