exec

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecGoCompiler

func ExecGoCompiler(args ...string) *exec.Cmd

ExecGoCompiler runs the Go compiler with a given command.

func ExecGoTidyModules

func ExecGoTidyModules(extraArgs ...string) *exec.Cmd

ExecGoTidyModules runs the Go compiler to tidy go.mod and go.sum

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