func RunFixes(p4r Runner, args []string) ([]Fix, error) {
	args = append([]string{"fixes"}, args...)
	res, err := p4r.Run(args)
	if err != nil {
		return nil, fmt.Errorf("Failed to run p4 %s\n%v", args, err)
	}
	fs := Fixes{}
	for _, r := range res {
		f := Fix{}
		if v, ok := r["code"]; ok {
			f.Code = v.(string)
			if f.Code == "error" {
				return nil, parseError(r)
			}
		}
		if v, ok := r["Change"]; ok {
			f.Change = v.(string)
		}
		if v, ok := r["Client"]; ok {
			f.Client = v.(string)
		}
		if v, ok := r["Date"]; ok {
			f.Date = v.(string)
		}
		if v, ok := r["Job"]; ok {
			f.Job = v.(string)
		}
		if v, ok := r["Status"]; ok {
			f.Status = v.(string)
		}
		if v, ok := r["User"]; ok {
			f.User = v.(string)
		}

		fs = append(fs, f)
	}
	return fs, nil
}
// RunFixes runs p4 fixes args...
RunFixes runs p4 fixes args
// RunFixes runs p4 fixes args ...
func RunFixes(p4r Runner, args []string) ([]Fix, error) {
	args = append([]string{"fixes"}, args...)
	res, err := p4r.Run(args)
	if err != nil {
		return nil, fmt.Errorf("Failed to run p4 %s\n%v", args, err)
	}
	fs := Fixes{}
	for _, r := range res {
		f := Fix{}
		if v, ok := r["code"]; ok {
			f.Code = v.(string)
			if f.Code == "error" {
				return nil, parseError(r)
			}
		}
		if v, ok := r["Change"]; ok {
			f.Change = v.(string)
		}
		if v, ok := r["Client"]; ok {
			f.Client = v.(string)
		}
		if v, ok := r["Date"]; ok {
			f.Date = v.(string)
		}
		if v, ok := r["Job"]; ok {
			f.Job = v.(string)
		}
		if v, ok := r["Status"]; ok {
			f.Status = v.(string)
		}
		if v, ok := r["User"]; ok {
			f.User = v.(string)
		}
		fs = append(fs, f)
	}
	return fs, nil
}
func RunFixes ( p4r Runner , args [ ] string ) ( [ ] Fix , error ) { args = append ( [ ] string { " " } , args ... ) res , err := p4r . Run ( args ) if err != nil { return nil , fmt . Errorf ( " \n " , args , err ) } fs := Fixes { } for _ , r := range res { f := Fix { } if v , ok := r [ " " ] ; ok { f . Code = v . ( string ) if f . Code == " " { return nil , parseError ( r ) } } if v , ok := r [ " " ] ; ok { f . Change = v . ( string ) } if v , ok := r [ " " ] ; ok { f . Client = v . ( string ) } if v , ok := r [ " " ] ; ok { f . Date = v . ( string ) } if v , ok := r [ " " ] ; ok { f . Job = v . ( string ) } if v , ok := r [ " " ] ; ok { f . Status = v . ( string ) } if v , ok := r [ " " ] ; ok { f . User = v . ( string ) } fs = append ( fs , f ) } return fs , nil }
RunFixes runs p4 fixes args
RunFixes runs p4 fixes args