(s string, command string)
| 393 | } |
| 394 | |
| 395 | func mapper(s string, command string) (string, error) { |
| 396 | out, err := exec.Command(command, s).CombinedOutput() |
| 397 | if err != nil { |
| 398 | out = bytes.TrimSpace(out) |
| 399 | return s, fmt.Errorf("%s: error running command %q: %v", out, command+" "+s, err) |
| 400 | } |
| 401 | return string(bytes.TrimSpace(out)), nil |
| 402 | } |
no test coverage detected
searching dependent graphs…