()
| 458 | } |
| 459 | |
| 460 | func getCurrentBinaryPath() (string, error) { |
| 461 | exe, err := os.Executable() |
| 462 | if err != nil { |
| 463 | return "", err |
| 464 | } |
| 465 | return filepath.EvalSymlinks(exe) |
| 466 | } |
| 467 | |
| 468 | func detectPackageManager(binPath string) string { |
| 469 | p := strings.ToLower(binPath) |
no outgoing calls
no test coverage detected