process

package
v0.102.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package process starts bounded subprocesses with a lifecycle that owns their descendants as well as their direct child.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandContext

func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd

CommandContext returns a command whose cancellation owns the process tree on the platforms where WB supports process-tree cancellation. Callers configure its directory, environment, and stdio exactly as they would an exec.Command.

func CommandContextInteractive added in v0.98.3

func CommandContextInteractive(ctx context.Context, interactive bool, name string, args ...string) *exec.Cmd

CommandContextInteractive preserves the caller's foreground terminal process group when interactive is true. Noninteractive commands retain tree-owned cancellation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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