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
Give the commands that free simulators and virtual machines, to copy
Țugui Dragoșc97eaaadfe85
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 5a10e8ea..94bbcaf2 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -32431,6 +32431,10 @@"comment" : "A product's name, never translated.","shouldTranslate" : false},+ "Docker Desktop > Settings > Resources" : {+ "comment" : "Docker Desktop's own menus, which are English in every language.",+ "shouldTranslate" : false+ },"Docker’s disk image holds every image, container, and volume." : {"localizations" : {"cs" : {@@ -116615,6 +116619,112 @@}}},+ "Run these in Terminal. They delete for good, without the Trash." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Spusťte tyto příkazy v Terminálu. Mažou trvale, bez přesunutí do koše."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Führe diese Befehle im Terminal aus. Sie löschen endgültig, ohne Umweg über den Papierkorb."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ejecuta estos comandos en Terminal. Borran definitivamente, sin pasar por la papelera."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Exécutez ces commandes dans Terminal. Elles suppriment définitivement, sans passer par la corbeille."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Esegui in Terminale questi comandi, che eliminano definitivamente senza passare dal Cestino."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ターミナルで以下のコマンドを実行してください。これらのコマンドは、ゴミ箱に入れずに完全に削除します。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "터미널에서 이 명령들을 실행하십시오. 이 명령들은 휴지통을 거치지 않고 영구적으로 삭제합니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Voer deze uit in Terminal. Wat ze verwijderen, is definitief weg: er gaat niets naar de prullenmand."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Uruchom te polecenia w Terminalu. Usuwają one dane trwale, z pominięciem Kosza."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Execute estes comandos no Terminal. Eles apagam definitivamente, sem passar pelo Lixo."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Rulați aceste comenzi în Terminal. Comenzile șterg definitiv, fără să mute nimic în Coș."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Выполните эти команды в Терминале. Они удаляют безвозвратно, минуя Корзину."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Kör de här kommandona i Terminal. De raderar permanent, utan att något hamnar i papperskorgen."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bunları Terminal’de çalıştırın. Çöp Sepeti’ne taşımadan kalıcı olarak silerler."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Виконайте ці команди в Терміналі. Вони видаляють назавжди, оминаючи Смітник."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在“终端”中运行这些命令。它们会永久删除内容,不经过废纸篓。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在「終端機」中執行這些指令。它們會永久刪除,不經過「垃圾桶」。"+ }+ }+ }+ },"Run this brew for Homebrew?" : {"localizations" : {"cs" : {@@ -116933,6 +117043,112 @@}}},+ "Run this in Terminal. It deletes for good, without the Trash." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Spusťte tento příkaz v Terminálu. Maže trvale, bez přesunutí do koše."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Führe diesen Befehl im Terminal aus. Er löscht endgültig, ohne Umweg über den Papierkorb."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ejecuta esto en Terminal. Borra definitivamente, sin pasar por la papelera."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Exécutez cette commande dans Terminal. Elle supprime définitivement, sans passer par la corbeille."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Esegui in Terminale questo comando, che elimina definitivamente senza passare dal Cestino."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ターミナルで以下のコマンドを実行してください。このコマンドは、ゴミ箱に入れずに完全に削除します。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "터미널에서 이 명령을 실행하십시오. 이 명령은 휴지통을 거치지 않고 영구적으로 삭제합니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Voer dit uit in Terminal. Wat het verwijdert, is definitief weg: er gaat niets naar de prullenmand."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Uruchom to polecenie w Terminalu. Usuwa ono dane trwale, z pominięciem Kosza."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Execute este comando no Terminal. Ele apaga definitivamente, sem passar pelo Lixo."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Rulați această comandă în Terminal. Comanda șterge definitiv, fără să mute nimic în Coș."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Выполните эту команду в Терминале. Она удаляет безвозвратно, минуя Корзину."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Kör det här kommandot i Terminal. Det raderar permanent, utan att något hamnar i papperskorgen."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bunu Terminal’de çalıştırın. Çöp Sepeti’ne taşımadan kalıcı olarak siler."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Виконайте цю команду в Терміналі. Вона видаляє назавжди, оминаючи Смітник."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在“终端”中运行此命令。它会永久删除内容,不经过废纸篓。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在「終端機」中執行此指令。它會永久刪除,不經過「垃圾桶」。"+ }+ }+ }+ },"Run this once in Terminal, and new windows read the settings below." : {"localizations" : {"cs" : {@@ -165064,111 +165280,9 @@}}},- "Xcode > Settings > Components, or xcrun simctl delete unavailable" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components nebo xcrun simctl delete unavailable"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components oder xcrun simctl delete unavailable"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components, o xcrun simctl delete unavailable"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components, ou xcrun simctl delete unavailable"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components, oppure xcrun simctl delete unavailable"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components、またはxcrun simctl delete unavailable"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components 또는 xcrun simctl delete unavailable"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components, of xcrun simctl delete unavailable"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components lub xcrun simctl delete unavailable"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components, ou xcrun simctl delete unavailable"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components sau xcrun simctl delete unavailable"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components или xcrun simctl delete unavailable"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components, eller xcrun simctl delete unavailable"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components veya xcrun simctl delete unavailable"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components або xcrun simctl delete unavailable"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components,或xcrun simctl delete unavailable"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "Xcode > Settings > Components,或xcrun simctl delete unavailable"- }- }- }+ "Xcode > Settings > Components" : {+ "comment" : "Xcode's own menus, which are English in every language.",+ "shouldTranslate" : false},"Yes" : {"localizations" : {@@ -179450,116 +179564,6 @@}}},- "colima delete --data" : {- "comment" : "A command, typed as it is.",- "shouldTranslate" : false- },- "docker system prune, or Docker Desktop > Settings > Resources" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune nebo Docker Desktop > Settings > Resources"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune oder Docker Desktop > Settings > Resources"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune, o Docker Desktop > Settings > Resources"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune, ou Docker Desktop > Settings > Resources"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune, oppure Docker Desktop > Settings > Resources"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune、またはDocker Desktop > Settings > Resources"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune 또는 Docker Desktop > Settings > Resources"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune, of Docker Desktop > Settings > Resources"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune lub Docker Desktop > Settings > Resources"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune, ou Docker Desktop > Settings > Resources"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune sau Docker Desktop > Settings > Resources"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune или Docker Desktop > Settings > Resources"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune, eller Docker Desktop > Settings > Resources"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune veya Docker Desktop > Settings > Resources"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune або Docker Desktop > Settings > Resources"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune,或Docker Desktop > Settings > Resources"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "docker system prune,或Docker Desktop > Settings > Resources"- }- }- }- },"iCloud Drive" : {"localizations" : {"cs" : {@@ -180302,112 +180306,6 @@}}},- "limactl delete <name>" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <název>"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <name>"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <nombre>"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <nom>"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <nome>"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <name>"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <name>"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <naam>"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <nazwa>"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <nome>"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <nume>"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <имя>"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <namn>"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <name>"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <імʼя>"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <name>"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "limactl delete <name>"- }- }- }- },"macOS" : {"comment" : "The system's name, never translated.","shouldTranslate" : false@@ -184762,10 +184660,6 @@}}},- "minikube delete --all --purge" : {- "comment" : "A command, typed as it is.",- "shouldTranslate" : false- },"moved" : {"localizations" : {"cs" : {@@ -185190,218 +185084,6 @@}}},- "orb delete <name> for a machine, and docker image prune -a for images nothing uses" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <název> pro počítač a docker image prune -a pro obrazy, které nic nepoužívá"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <name> für eine Maschine und docker image prune -a für Images, die nichts verwendet"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <nombre> para una máquina, y docker image prune -a para las imágenes que no usa nada"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <nom> pour une machine, et docker image prune -a pour les images que rien n’utilise"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <nome> per una macchina, e docker image prune -a per le immagini inutilizzate"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "マシンにはorb delete <name>、どこからも使われていないイメージにはdocker image prune -a"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "머신은 orb delete <name>, 사용하지 않는 이미지는 docker image prune -a"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <naam> voor een machine, en docker image prune -a voor images die door niets worden gebruikt"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <nazwa> dla maszyny oraz docker image prune -a dla obrazów, których nic nie używa"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <nome> para uma máquina, e docker image prune -a para imagens que nada usa"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <nume> pentru o mașină și docker image prune -a pentru imaginile pe care nu le folosește nimic"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <имя> для машины и docker image prune -a для образов, которые ничем не используются"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <namn> för en maskin, och docker image prune -a för avbilder som inget använder"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Bir makine için orb delete <name>, hiçbir şeyin kullanmadığı imajlar için docker image prune -a"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "orb delete <імʼя> для машини і docker image prune -a для образів, якими ніщо не користується"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "删除机器用orb delete <name>,删除未被使用的镜像用docker image prune -a"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "機器用orb delete <name>,沒有任何項目使用的映像檔則用docker image prune -a"- }- }- }- },- "podman machine rm <name>" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <název>"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <name>"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <nombre>"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <nom>"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <nome>"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <name>"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <name>"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <naam>"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <nazwa>"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <nome>"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <nume>"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <имя>"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <namn>"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <name>"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <імʼя>"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <name>"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "podman machine rm <name>"- }- }- }- },"ssh asks for a key’s passphrase once, saves it in your keychain, and adds the key to the agent." : {"localizations" : {"cs" : {@@ -185932,112 +185614,6 @@}}},- "vagrant box remove <name>, or vagrant box prune for old versions" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <název> nebo vagrant box prune pro staré verze"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <name> oder vagrant box prune für alte Versionen"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <nombre>, o vagrant box prune para las versiones antiguas"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <nom>, ou vagrant box prune pour les anciennes versions"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <nome>, oppure vagrant box prune per le vecchie versioni"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <name>、または古いバージョンにはvagrant box prune"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <name> 또는 이전 버전은 vagrant box prune"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <naam>, of vagrant box prune voor oude versies"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <nazwa> lub vagrant box prune dla starych wersji"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <nome>, ou vagrant box prune para versões antigas"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <nume> sau vagrant box prune pentru versiunile vechi"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <имя> или vagrant box prune для старых версий"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <namn>, eller vagrant box prune för gamla versioner"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <name> veya eski sürümler için vagrant box prune"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <імʼя> або vagrant box prune для старих версій"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <name>,旧版本可用vagrant box prune删除"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "vagrant box remove <name>,舊版本則用vagrant box prune"- }- }- }- },"zsh keeps your last 50,000 commands and saves all of them, instead of keeping 2,000 and saving 1,000 as macOS sets it." : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCore/Space/SpaceReport.swift b/Packages/PeelCore/Sources/PeelCore/Space/SpaceReport.swiftindex 818621f3..69509772 100644--- a/Packages/PeelCore/Sources/PeelCore/Space/SpaceReport.swift+++ b/Packages/PeelCore/Sources/PeelCore/Space/SpaceReport.swift@@ -33,6 +33,9 @@ public struct SpaceItem: Sendable, Hashable, Identifiable {public var leavesMacOSsOwn = false/// The folders of `urls` where macOS files reports into folders of its own, so only their files are offered.public var onlyFilesIn: [URL] = []+ /// The commands that free an area Peel leaves alone, as its tool's documentation gives them. Peel shows them to+ /// copy and never runs them: they delete for good.+ public var commands: [String] = []public var isReadOnly: Bool {if case .readOnly = handling { true } else { false }@@ -69,6 +72,7 @@ public enum SpaceInventory {var heldBack: HoldBack?var leavesMacOSsOwn = falsevar onlyFilesIn: [String] = []+ var commands: [String] = []/// Each of `paths` on this Mac: one that starts with `/` is under `root`, the rest are in `home`.func urls(home: URL, root: URL) -> [URL] {@@ -93,7 +97,8 @@ public enum SpaceInventory {id: "simulators",category: .development,paths: ["Library/Developer/CoreSimulator/Devices", "/Library/Developer/CoreSimulator/Images"],- handling: .readOnly+ handling: .readOnly,+ commands: ["xcrun simctl runtime delete --outdated", "xcrun simctl delete unavailable"]),Definition(id: "android-sdk",@@ -111,19 +116,23 @@ public enum SpaceInventory {id: "docker",category: .virtualMachines,paths: ["Library/Containers/com.docker.docker/Data/vms"],- handling: .readOnly+ handling: .readOnly,+ commands: ["docker system prune"]),Definition(id: "orbstack",category: .virtualMachines,paths: ["Library/Group Containers/HUAQ24HBR6.dev.orbstack/data"],- handling: .readOnly+ handling: .readOnly,+ commands: ["orb delete <name>", "docker image prune -a"]),Definition(id: "colima",category: .virtualMachines,paths: [".colima"],- handling: .readOnly+ handling: .readOnly,+ // Without --data, colima delete keeps the images and volumes on the disk.+ commands: ["colima delete --data"]),Definition(id: "utm",@@ -147,19 +156,22 @@ public enum SpaceInventory {id: "podman",category: .virtualMachines,paths: [".local/share/containers/podman/machine"],- handling: .readOnly+ handling: .readOnly,+ commands: ["podman machine rm <name>"]),Definition(id: "lima",category: .virtualMachines,paths: [".lima"],- handling: .readOnly+ handling: .readOnly,+ commands: ["limactl delete <name>"]),Definition(id: "minikube",category: .virtualMachines,paths: [".minikube/machines", ".minikube/cache/images"],- handling: .readOnly+ handling: .readOnly,+ commands: ["minikube delete --all --purge"]),Definition(id: "virtualbox",@@ -171,7 +183,8 @@ public enum SpaceInventory {id: "vagrant",category: .virtualMachines,paths: [".vagrant.d/boxes"],- handling: .readOnly+ handling: .readOnly,+ commands: ["vagrant box remove <name>", "vagrant box prune"]),Definition(id: "podcasts",@@ -398,7 +411,8 @@ public enum SpaceInventory {handling: definition.handling,heldBack: definition.heldBack,leavesMacOSsOwn: definition.leavesMacOSsOwn,- onlyFilesIn: definition.onlyFilesIn(root: root)+ onlyFilesIn: definition.onlyFilesIn(root: root),+ commands: definition.commands))}}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/SpaceInventoryTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/SpaceInventoryTests.swiftindex 5a197a7b..be3932ff 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/SpaceInventoryTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/SpaceInventoryTests.swift@@ -266,6 +266,37 @@ struct SpaceInventoryTests {#expect(Set(SpaceInventory.definitions.map(\.id)).count == SpaceInventory.definitions.count)}+ @Test func theSimulatorsAreaGivesApplesCommandsThatThisMacsSimctlKnows() throws {+ let simulators = try #require(SpaceInventory.definitions.first { $0.id == "simulators" })+ #expect(simulators.commands == ["xcrun simctl runtime delete --outdated", "xcrun simctl delete unavailable"])+ #expect(try simctlHelp("runtime").contains("--outdated"))+ #expect(try simctlHelp("delete").contains("unavailable"))+ }++ @Test func colimaIsToldToDeleteItsDataDiskToo() throws {+ let colima = try #require(SpaceInventory.definitions.first { $0.id == "colima" })+ #expect(colima.commands == ["colima delete --data"])+ }++ @Test func onlyAnAreaPeelLeavesAloneGivesCommands() {+ for definition in SpaceInventory.definitions where !definition.commands.isEmpty {+ #expect(definition.handling == .readOnly, "\(definition.id)")+ }+ }++ private func simctlHelp(_ topic: String) throws -> String {+ let process = Process()+ let output = Pipe()+ process.executableURL = URL(filePath: "/usr/bin/xcrun")+ process.arguments = ["simctl", "help", topic]+ process.standardOutput = output+ process.standardError = output+ try process.run()+ let data = output.fileHandleForReading.readDataToEndOfFile()+ process.waitUntilExit()+ return String(decoding: data, as: UTF8.self)+ }+/// Space says it leaves a read only area to the app that made it, so nothing in one is what Developer/// selects for the person to remove.@Test func noReadOnlyAreaHoldsWhatDeveloperSelects() {diff --git a/Peel/Views/CopyableLines.swift b/Peel/Views/CopyableLines.swiftnew file mode 100644index 00000000..246bc569--- /dev/null+++ b/Peel/Views/CopyableLines.swift@@ -0,0 +1,24 @@+import SwiftUI++struct CopyableLines: View {+ let caption: Text+ let lines: [String]++ var body: some View {+ HStack(alignment: .bottom, spacing: 10) {+ VStack(alignment: .leading, spacing: 2) {+ caption+ .font(.caption)+ .foregroundStyle(.secondary)+ Text(verbatim: lines.joined(separator: "\n"))+ .font(.subheadline.monospaced())+ .textSelection(.enabled)+ .fixedSize(horizontal: false, vertical: true)+ }+ Spacer(minLength: 8)+ CopyButton(text: lines.joined(separator: "\n"))+ .buttonStyle(.bordered)+ .controlSize(.small)+ }+ }+}diff --git a/Peel/Views/Space/SpaceDetailView.swift b/Peel/Views/Space/SpaceDetailView.swiftindex 3629c995..76eb48f7 100644--- a/Peel/Views/Space/SpaceDetailView.swift+++ b/Peel/Views/Space/SpaceDetailView.swift@@ -28,12 +28,14 @@ struct SpaceDetailView: View {Section {Text(item.words.detail).font(.callout)- if let hint = item.words.hint {+ if item.words.hint != nil || !item.commands.isEmpty {LabeledContent {- Text(hint)- .font(.callout.monospaced())- .textSelection(.enabled)- .multilineTextAlignment(.trailing)+ if let hint = item.words.hint {+ Text(hint)+ .font(.callout)+ .textSelection(.enabled)+ .multilineTextAlignment(.trailing)+ }} label: {heading("How to free it",@@ -41,6 +43,14 @@ struct SpaceDetailView: View {)}}+ if !item.commands.isEmpty {+ CopyableLines(+ caption: item.commands.count == 1+ ? Text("Run this in Terminal. It deletes for good, without the Trash.")+ : Text("Run these in Terminal. They delete for good, without the Trash."),+ lines: item.commands+ )+ }} header: {Text("What It Is")}diff --git a/Peel/Views/Space/SpaceText.swift b/Peel/Views/Space/SpaceText.swiftindex e9071b0b..549e35b8 100644--- a/Peel/Views/Space/SpaceText.swift+++ b/Peel/Views/Space/SpaceText.swift@@ -32,7 +32,9 @@ nonisolated extension SpaceItem {"simulators": Words(title: "Simulators",detail: "Devices and runtimes Xcode keeps for testing.",- hint: "Xcode > Settings > Components, or xcrun simctl delete unavailable"+ hint: LocalizedStringResource(+ "Xcode > Settings > Components", comment: "Xcode's own menus, which are English in every language."+ )),"android-sdk": Words(title: "Android Emulators",@@ -47,17 +49,18 @@ nonisolated extension SpaceItem {"docker": Words(title: LocalizedStringResource("Docker Desktop", comment: "A product's name, never translated."),detail: "Docker’s disk image holds every image, container, and volume.",- hint: "docker system prune, or Docker Desktop > Settings > Resources"+ hint: LocalizedStringResource(+ "Docker Desktop > Settings > Resources",+ comment: "Docker Desktop's own menus, which are English in every language."+ )),"orbstack": Words(title: LocalizedStringResource("OrbStack", comment: "A product's name, never translated."),- detail: "OrbStack’s machines and images.",- hint: "orb delete <name> for a machine, and docker image prune -a for images nothing uses"+ detail: "OrbStack’s machines and images."),"colima": Words(title: LocalizedStringResource("Colima", comment: "A product's name, never translated."),- detail: "Colima’s virtual machines.",- hint: LocalizedStringResource("colima delete --data", comment: "A command, typed as it is.")+ detail: "Colima’s virtual machines."),"utm": Words(title: LocalizedStringResource("UTM", comment: "A product's name, never translated."),@@ -76,18 +79,15 @@ nonisolated extension SpaceItem {),"podman": Words(title: LocalizedStringResource("Podman", comment: "A product's name, never translated."),- detail: "Podman’s virtual machine and the images inside it.",- hint: "podman machine rm <name>"+ detail: "Podman’s virtual machine and the images inside it."),"lima": Words(title: LocalizedStringResource("Lima", comment: "A product's name, never translated."),- detail: "Lima virtual machines.",- hint: "limactl delete <name>"+ detail: "Lima virtual machines."),"minikube": Words(title: LocalizedStringResource("minikube", comment: "A product's name, never translated."),- detail: "minikube clusters and the images they downloaded.",- hint: LocalizedStringResource("minikube delete --all --purge", comment: "A command, typed as it is.")+ detail: "minikube clusters and the images they downloaded."),"virtualbox": Words(title: LocalizedStringResource("VirtualBox", comment: "A product's name, never translated."),@@ -96,8 +96,7 @@ nonisolated extension SpaceItem {),"vagrant": Words(title: "Vagrant Boxes",- detail: "Base boxes Vagrant downloaded.",- hint: "vagrant box remove <name>, or vagrant box prune for old versions"+ detail: "Base boxes Vagrant downloaded."),"podcasts": Words(title: "Podcast Downloads",@@ -176,10 +175,6 @@ extension SpaceItem {if let hint = found.hint {assert(!hint.key.isEmpty, "\(id) has an empty hint")}- // Without `--data`, `colima delete` keeps the container data (images and volumes) on disk.- if id == "colima" {- assert(found.hint?.key.contains("--data") == true, "colima's hint must delete the runtime's data disk too")- }}}}diff --git a/Peel/Views/Terminal/TerminalRows.swift b/Peel/Views/Terminal/TerminalRows.swiftindex 15383909..4332201f 100644--- a/Peel/Views/Terminal/TerminalRows.swift+++ b/Peel/Views/Terminal/TerminalRows.swift@@ -38,29 +38,6 @@ struct TerminalSwitchRow: View {}}-struct CopyableLines: View {- let caption: Text- let lines: [String]-- var body: some View {- HStack(alignment: .bottom, spacing: 10) {- VStack(alignment: .leading, spacing: 2) {- caption- .font(.caption)- .foregroundStyle(.secondary)- Text(verbatim: lines.joined(separator: "\n"))- .font(.subheadline.monospaced())- .textSelection(.enabled)- .fixedSize(horizontal: false, vertical: true)- }- Spacer(minLength: 8)- CopyButton(text: lines.joined(separator: "\n"))- .buttonStyle(.bordered)- .controlSize(.small)- }- }-}-struct PromptSample: View {let style: PromptStylelet theme: TerminalTheme?diff --git a/README.md b/README.mdindex 09b596ad..61bca2f8 100644--- a/README.md+++ b/README.md@@ -124,7 +124,9 @@ Peel is free and open source, and it speaks English and 17 other languages.until they install them, and what your iPhone backups hold. Nothing is selected for you.- **iCloud Drive:** files already safe in iCloud that are also downloaded to this Mac. Remove Downloads, as inFinder, takes away only the copy on this Mac: each file stays in iCloud and downloads again when you open it.-- **Space:** what's taking up room, and which app it belongs to. The caches and logs apps keep for every account,+- **Space:** what's taking up room, and which app it belongs to. What an app manages itself, such as Xcode's+ simulators or Docker's disk, Space measures and leaves to that app, with the command that frees it for you to copy+ into Terminal: Peel never runs it, since it deletes for good. The caches and logs apps keep for every account,and the crash reports macOS keeps, in the Library at the top of the disk, go through Peel's helper when anadministrator owns them, and what macOS keeps there for its own services is never listed. Peel can also warn you,with a notification that opens Space, when less than a tenth of your disk is available: turn it on in Settings >