exec

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(command string, w io.Writer) error

Run executes a command string via the user's shell, streaming output to w. Uses $SHELL if set, falls back to /bin/sh. Returns *ExitError if the command exits with a non-zero status.

Types

type ExitError

type ExitError struct {
	Code int
}

ExitError wraps a command's non-zero exit code.

func (*ExitError) Error

func (e *ExitError) Error() string

Jump to

Keyboard shortcuts

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