| 72 | } |
| 73 | |
| 74 | func handlePMUpdate(res updatepolicy.Result, binPath string) error { |
| 75 | pm := detectPackageManager(binPath) |
| 76 | currentVer := displayVersion(res.CurrentVersion) |
| 77 | latestVer := displayVersion(res.LatestVersion) |
| 78 | |
| 79 | fmt.Println(tui.RenderPMInstructions(pm, currentVer, latestVer)) |
| 80 | |
| 81 | return usageErr("cannot auto-update: installation is managed by a package manager") |
| 82 | } |
| 83 | |
| 84 | // handleExplicitOptionalUpdate handles explicit update requests. |
| 85 | // Unlike automatic updates, this skips TTL caching and doesn't record attempt timestamps. |