procutil

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureCommandTreeKill

func ConfigureCommandTreeKill(ctx context.Context, cmd *exec.Cmd)

ConfigureCommandTreeKill arranges for cmd and children in its process group to be killed when ctx is canceled.

func ShellCommand

func ShellCommand(ctx context.Context, commandLine string) *exec.Cmd

ShellCommand returns a command that runs commandLine through the platform's standard command shell.

func ShellCommandArgs

func ShellCommandArgs(goos, commandLine string) (string, []string)

ShellCommandArgs returns the executable and arguments used by ShellCommand. goos is injectable so callers can unit-test platform construction without requiring that platform's shell to exist on the test host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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