(binPath string)
| 466 | } |
| 467 | |
| 468 | func detectPackageManager(binPath string) string { |
| 469 | p := strings.ToLower(binPath) |
| 470 | if strings.Contains(p, "/opt/homebrew/") || strings.Contains(p, "/usr/local/cellar/") { |
| 471 | return "homebrew" |
| 472 | } |
| 473 | if strings.Contains(p, "\\scoop\\apps\\") { |
| 474 | return "scoop" |
| 475 | } |
| 476 | if strings.Contains(p, "windowsapps") { |
| 477 | return "winget" |
| 478 | } |
| 479 | return "" |
| 480 | } |
| 481 | |
| 482 | // kickoffSubscriptionCheck launches a fire-and-forget refresh of the |
| 483 | // subscription-status cache so subsequent commands can surface a past_due |
no outgoing calls