func runCmdOutput(command string, args []string, dir string) (string, error) {
	cmd := gos.Command(command, args...)
	cmd.Dir(dir)
	var err error
	if output, err := cmd.Output(); err == nil {
		return string(bytes.TrimSpace(output)), nil
	}
	return "", err
}
func runCmdOutput(command string, args []string, dir string) (string, error) {
	cmd := gos.Command(command, args...)
	cmd.Dir(dir)
	var err error
	if output, err := cmd.Output(); err == nil {
		return string(bytes.TrimSpace(output)), nil
	}
	return "", err
}
func runCmdOutput ( command string , args [ ] string , dir string ) ( string , error ) { cmd := gos . Command ( command , args ... ) cmd . Dir ( dir ) var err error if output , err := cmd . Output ( ) ; err == nil { return string ( bytes . TrimSpace ( output ) ) , nil } return " " , err }
// runCmdOutput is a helper function to run commands and return output.
// It runs command with args from directory at dir.
// If successful, returns output and nil error
runCmdOutput is a helper function to run commands and return output . It runs command with args from directory at dir . If successful returns output and nil error