process

package
v0.8.25 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, spec Command) error

Types

type Command

type Command struct {
	Path   string
	Args   []string
	Dir    string
	Env    []string
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	// ProcessGroup starts the child in a private process group so context
	// cancellation can terminate descendants. Use it for headless commands.
	// Do not use it for interactive TUIs attached to the user's terminal:
	// moving the child out of the terminal foreground process group can stop
	// or hang the TUI when it reads from stdin.
	ProcessGroup bool
}

Jump to

Keyboard shortcuts

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