exec

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmd added in v1.12.2

func ExecCmd(le *logrus.Entry, cmd *exec.Cmd) error

ExecCmd runs the command and collects the log output.

func InterpretCmdErr added in v1.28.1

func InterpretCmdErr(err error, stderrBuf bytes.Buffer) error

InterpretCmdErr interprets command errors and extracts meaningful error messages

func NewCmd

func NewCmd(ctx context.Context, proc string, args ...string) *exec.Cmd

NewCmd builds a new exec cmd with defaults.

func SetCmdLogger added in v1.28.1

func SetCmdLogger(le *logrus.Entry, cmd *exec.Cmd, buf *bytes.Buffer)

SetCmdLogger configures logging for the command

func StartAndWait

func StartAndWait(ctx context.Context, le *logrus.Entry, ecmd *exec.Cmd) error

StartAndWait runs the given process and waits for ctx or process to complete.

func StartCmd added in v1.28.1

func StartCmd(le *logrus.Entry, cmd *exec.Cmd) error

StartCmd starts the command without waiting for it to complete and collects the log output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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