code: func cmd(dir string, arg ...string) (string, error) {
  	c := exec.Command(binary, arg...)
  	c.Dir = dir
  
  	output, err := c.CombinedOutput()
  	if err != nil {
  		return "", fmt.Errorf("running `%s %s` failed with output: %s\nerror: %v", c.Path, strings.Join(c.Args, " "), output, err)
  	}
  
  	return string(output), nil
  }
docs: // cmd runs `apparmor_parser` with the passed arguments.