12 lines
210 B
Go
12 lines
210 B
Go
package executor
|
|
|
|
import (
|
|
"context"
|
|
"os/exec"
|
|
)
|
|
|
|
type Executor interface {
|
|
CombinedOutput(context.Context, string, ...string) ([]byte, error)
|
|
CommandContext(context.Context, string, ...string) *exec.Cmd
|
|
}
|