commandrun

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package commandrun preserves cancellation identity for foreground commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, command *exec.Cmd) error

Run executes a command created by exec.CommandContext with ctx. It preserves the context error when cancellation actually terminates the child, without interpreting platform-specific process exit statuses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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