(cmd *exec.Cmd)
| 177 | } |
| 178 | |
| 179 | func getExitStatus(cmd *exec.Cmd) int { |
| 180 | if cmd.ProcessState != nil { |
| 181 | //nolint:gocritic // ignore single conditional in switch warning |
| 182 | switch sys := cmd.ProcessState.Sys().(type) { |
| 183 | case syscall.WaitStatus: |
| 184 | return sys.ExitStatus() |
| 185 | } |
| 186 | } |
| 187 | return 1 |
| 188 | } |
| 189 | |
| 190 | func errorf(name string, err error) { |
| 191 | fmt.Fprintf(os.Stderr, "%s: %s\n", path.Base(name), err.Error()) |
no outgoing calls
no test coverage detected
searching dependent graphs…