Documentation ¶ Overview ¶ Package commandrun preserves cancellation identity for foreground commands. Index ¶ func Run(ctx context.Context, command *exec.Cmd) error 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. Source Files ¶ View all Source files run.go Click to show internal directories. Click to hide internal directories.