impl.go 321 B

1234567891011121314
  1. package aapt
  2. import (
  3. "os/exec"
  4. "notabug.org/Umnik/GoAndroidSDK/v2/components/misc"
  5. )
  6. // RunSync executes Aapt commands
  7. func (aapt Aapt) RunSync(command string, args ...string) ([]byte, error) {
  8. cmd := append([]string{command}, args...)
  9. return misc.TrimOut(exec.Command(aapt.BinPath(), cmd...).CombinedOutput())
  10. }