Help us shape the future of Go! Take the 2026 Go Developer Survey

exec

package
v1.25.10 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 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 NewCmd

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

NewCmd builds a new exec cmd with defaults.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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