import Foundation

enum BrewParser {
    static func parseOutdated(_ output: String) -> [String] {
        output.split(separator: "\n")
            .map { String($0) }
            .filter { !$0.isEmpty }
    }

    static func parseVersion(_ output: String) -> String {
        output.split(separator: "\n").first.map(String.init) ?? "Unknown"
    }
}
