internal/agent/exec/exec.go
Ref: Size: 421 B History
// Package exec defines the single command-runner type shared by the host-touching // agent packages (cloudhv, imagecache, netenv). Injecting a Runner keeps // those packages testable without touching the kernel. package exec import "context" // Runner executes a system command and returns its combined stdout/stderr and // any error. type Runner func(ctx context.Context, name string, args ...string) (string, error)