cli/pkg/jobrunner/handlers/exec.go

9 lines
248 B
Go
Raw Normal View History

package handlers
import "os/exec"
// execCommand is a package-level variable for creating exec.Cmd instances.
// It defaults to exec.CommandContext and can be replaced in tests for
// mocking shell commands.
var execCommand = exec.CommandContext