exec

package
v0.0.0-...-c1b1270 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogErrorAsExitCode

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

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