Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Three comments are wrapped within 120 columns
Țugui Dragoș117b22fc5e5e
diff --git a/Packages/PeelCore/Sources/PeelCore/Homebrew/Homebrew.swift b/Packages/PeelCore/Sources/PeelCore/Homebrew/Homebrew.swiftindex 49cb58a1..5300e658 100644--- a/Packages/PeelCore/Sources/PeelCore/Homebrew/Homebrew.swift+++ b/Packages/PeelCore/Sources/PeelCore/Homebrew/Homebrew.swift@@ -443,7 +443,8 @@ public enum Homebrew {output += attempt.outputdidFail = didFail || attempt.status != 0} catch {- // A failure is one sentence with no line ending, and the next call's report starts on a line of its own.+ // A failure is one sentence with no line ending, and the next call's report starts on a line of+ // its own.output += error.output.hasSuffix("\n") ? error.output : error.output + "\n"didFail = true}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/HomebrewTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/HomebrewTests.swiftindex 565ccdb9..8cf8f06b 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/HomebrewTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/HomebrewTests.swift@@ -401,9 +401,9 @@ struct HomebrewTests {#expect(!HomebrewInstallation(version: "4.6.20", prefix: URL(filePath: "/opt/homebrew")).countsInThousands)}- /// Homebrew prints the total only when it is not zero (`unless cleanup.disk_cleanup_size.zero?` in `cmd/cleanup.rb`)- /// and lists each file it would remove (`Would remove: <path> (<size>)` in `cleanup.rb`), so a dry run that lists no- /// file has nothing to free. A broken link or an empty folder takes no room.+ /// Homebrew prints the total only when it is not zero (`unless cleanup.disk_cleanup_size.zero?` in+ /// `cmd/cleanup.rb`) and lists each file it would remove (`Would remove: <path> (<size>)` in `cleanup.rb`), so a+ /// dry run that lists no file has nothing to free. A broken link or an empty folder takes no room.@Test func aCleanUpThatListsNothingFreesNothing() {#expect(Homebrew.reclaimableBytes(in: "", countsInThousands: true) == 0)#expect(Homebrew.reclaimableBytes(in: "Would remove (broken link): /opt/homebrew/bin/old\n", countsInThousands: true) == 0)diff --git a/Peel/HomeSnapshot.swift b/Peel/HomeSnapshot.swiftindex c09938ee..401c8856 100644--- a/Peel/HomeSnapshot.swift+++ b/Peel/HomeSnapshot.swift@@ -3,9 +3,10 @@ import SwiftUI#if DEBUG/// Renders Home, About and the menu bar panel to PNG files in light and dark, each also with Increase Contrast, when-/// `PEEL_SNAPSHOT` names a folder, then quits. This lets their layouts be checked without a screenshot, in any language Peel runs in. Each view is-/// drawn at the width the app gives it, on the background it has there: About on its paper, the menu bar panel on-/// the paper it draws itself, and Home on the window's plain color, since `ImageRenderer` does not draw glass.+/// `PEEL_SNAPSHOT` names a folder, then quits. This lets their layouts be checked without a screenshot, in any language+/// Peel runs in. Each view is drawn at the width the app gives it, on the background it has there: About on its paper,+/// the menu bar panel on the paper it draws itself, and Home on the window's plain color, since `ImageRenderer` does+/// not draw glass.enum HomeSnapshot {static func runIfRequested() async {guard let directory = ProcessInfo.processInfo.environment["PEEL_SNAPSHOT"] else { return }