impl.go 273 B

123456789101112
  1. package adb
  2. import (
  3. "os/exec"
  4. )
  5. // RunSync ExecCommand executes adb commands with arguments
  6. func (adb Adb) RunSync(command string, args ...string) ([]byte, error) {
  7. fc := append([]string{command}, args...)
  8. return exec.Command(adb.BinPath(), fc...).CombinedOutput()
  9. }