execx

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookPath

func LookPath(name string) (string, error)

LookPath wraps exec.LookPath with a descriptive error.

func Output

func Output(ctx context.Context, binary string, args ...string) ([]byte, error)

Output executes binary and returns stdout bytes.

func Run

func Run(ctx context.Context, binary string, args ...string) error

Run executes binary with args, returning a formatted error on non-zero exit.

func Version

func Version(ctx context.Context, binary string, args ...string) string

Version runs binary with versionArgs and returns first line of output. Returns "" on any error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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