implement Executor pattern

This commit is contained in:
2026-02-09 13:10:00 -05:00
parent 3c11a79252
commit f615b03794
6 changed files with 93 additions and 48 deletions

View File

@@ -0,0 +1,11 @@
package executor
import (
"context"
"os/exec"
)
type Executor interface {
CombinedOutput(context.Context, string, ...string) ([]byte, error)
CommandContext(context.Context, string, ...string) *exec.Cmd
}