mac_cleaner 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +53 -0
- data/exe/mac_cleaner +5 -0
- data/lib/common.sh +1751 -0
- data/lib/mac_cleaner/analyzer.rb +156 -0
- data/lib/mac_cleaner/cleaner.rb +540 -0
- data/lib/mac_cleaner/cli.rb +27 -0
- data/lib/mac_cleaner/version.rb +3 -0
- data/lib/mac_cleaner.rb +8 -0
- data/lib/paginated_menu.sh +688 -0
- data/lib/simple_menu.sh +292 -0
- data/lib/whitelist_manager.sh +289 -0
- metadata +72 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f90c5f76ccebcfdef050da44c646bafe5bdb33915204440404a7966f0dd8a9a
|
|
4
|
+
data.tar.gz: ee9f1cf39c205442f319bde3c03f83ca8b434068b8b311dc734e7fb670e15681
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fb963de26afbd1a18bd2cbe6a4b8f77e2675600e5a4c6e152b6d7bc08d6115020bfc77bd0cf2568390bba4a3e9622949789c2d0a00d196e120ecde375f07dcc
|
|
7
|
+
data.tar.gz: 4dee9666494fe8c9d20619bead848d4a3d561b88a607a4a10339802a6115872a9ae90919dd1746946927de5372731323ce6d14c7a1412238485d277288b20c9e
|
data/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Mac Cleaner
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/rb/mac_cleaner)
|
|
4
|
+
|
|
5
|
+
[](https://www.buymeacoffee.com/ojisanchamchi)
|
|
6
|
+
|
|
7
|
+
A script to clean your Mac and analyze disk space.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
### From RubyGems
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
gem install mac_cleaner
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### From the `.gem` file
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
gem install ./mac_cleaner-1.2.0.gem
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### From the git repository
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
git clone https://github.com/ojisanchamchi/mac_cleaner.git
|
|
27
|
+
cd mac_cleaner
|
|
28
|
+
rake install
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
### Clean up your Mac
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
mac_cleaner clean
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Options
|
|
40
|
+
|
|
41
|
+
* `--dry-run`, `-n`: Perform a dry run without deleting files.
|
|
42
|
+
* `--sudo`: Run with sudo for system-level cleanup.
|
|
43
|
+
* `--interactive`, `-i`: Review each section and choose what to clean before anything runs.
|
|
44
|
+
|
|
45
|
+
### Analyze disk space
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
mac_cleaner analyze [PATH]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Arguments
|
|
52
|
+
|
|
53
|
+
* `PATH`: The path to analyze. Defaults to `~`.
|