parseOutdatedJSON decodes brew outdated --json into OutdatedPackages, which separates formulae from casks — the plain-text output is just names with no type information. Codable structs mirror the JSON shape, with convertFromSnakeCase mapping installed_versions to Swift naming. Undecodable input (brew error text, empty output) parses as .none. The legacy line parser stays until callers switch over next commit. Covered by 4 new unit tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| BrewBarTests.swift | ||