package store import "os/exec" // Runner executes an external command and returns its stdout. type Runner interface { Run(name string, args ...string) ([]byte, error) } // ExecRunner runs real commands. type ExecRunner struct{} func (ExecRunner) Run(name string, args ...string) ([]byte, error) { return exec.Command(name, args...).Output() }