mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 11:08:31 +00:00
chore: polish PR #197 and add Xcode Archives whitelist option
- Remove duplicate comment in project.sh - Fix color code issue in purge.sh help message - Add proper spacing after load_purge_config function - Add shell syntax highlighting in README code block - Add Xcode Archives to whitelist options (fixes #195)
This commit is contained in:
@@ -211,7 +211,7 @@ You can configure which directories `mole` scans for projects by creating a conf
|
|||||||
|
|
||||||
Example `~/.config/mole/purge_paths`:
|
Example `~/.config/mole/purge_paths`:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
~/Documents/MyProjects
|
~/Documents/MyProjects
|
||||||
~/Work/ClientA
|
~/Work/ClientA
|
||||||
~/Work/ClientB
|
~/Work/ClientB
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ show_help() {
|
|||||||
echo " --debug Enable debug logging"
|
echo " --debug Enable debug logging"
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${YELLOW}Configuration:${NC}"
|
echo -e "${YELLOW}Configuration:${NC}"
|
||||||
echo " To customize search paths, create: ${NC}$HOME/.config/mole/purge_paths${NC}"
|
echo " To customize search paths, create: $HOME/.config/mole/purge_paths"
|
||||||
echo " Add one directory path per line (supports ~)."
|
echo " Add one directory path per line (supports ~)."
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${YELLOW}Default Paths:${NC}"
|
echo -e "${YELLOW}Default Paths:${NC}"
|
||||||
|
|||||||
@@ -26,8 +26,7 @@ readonly MIN_AGE_DAYS=7
|
|||||||
# Scan depth defaults (relative to search root)
|
# Scan depth defaults (relative to search root)
|
||||||
readonly PURGE_MIN_DEPTH_DEFAULT=2
|
readonly PURGE_MIN_DEPTH_DEFAULT=2
|
||||||
readonly PURGE_MAX_DEPTH_DEFAULT=8
|
readonly PURGE_MAX_DEPTH_DEFAULT=8
|
||||||
# Search paths (only project directories)
|
# Search paths (default, can be overridden via config file)
|
||||||
# Search paths (default)
|
|
||||||
readonly DEFAULT_PURGE_SEARCH_PATHS=(
|
readonly DEFAULT_PURGE_SEARCH_PATHS=(
|
||||||
"$HOME/www"
|
"$HOME/www"
|
||||||
"$HOME/dev"
|
"$HOME/dev"
|
||||||
@@ -70,8 +69,9 @@ load_purge_config() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Initialize paths
|
# Initialize paths on script load
|
||||||
load_purge_config
|
load_purge_config
|
||||||
|
|
||||||
# Args: $1 - path to check
|
# Args: $1 - path to check
|
||||||
# Check if path is safe to clean (must be inside a project directory)
|
# Check if path is safe to clean (must be inside a project directory)
|
||||||
is_safe_project_artifact() {
|
is_safe_project_artifact() {
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ Apple Mail cache|$HOME/Library/Caches/com.apple.mail/*|system_cache
|
|||||||
Gradle build cache (Android Studio, Gradle projects)|$HOME/.gradle/caches/*|ide_cache
|
Gradle build cache (Android Studio, Gradle projects)|$HOME/.gradle/caches/*|ide_cache
|
||||||
Gradle daemon processes cache|$HOME/.gradle/daemon/*|ide_cache
|
Gradle daemon processes cache|$HOME/.gradle/daemon/*|ide_cache
|
||||||
Xcode DerivedData (build outputs, indexes)|$HOME/Library/Developer/Xcode/DerivedData/*|ide_cache
|
Xcode DerivedData (build outputs, indexes)|$HOME/Library/Developer/Xcode/DerivedData/*|ide_cache
|
||||||
|
Xcode archives (built app packages)|$HOME/Library/Developer/Xcode/Archives/*|ide_cache
|
||||||
Xcode internal cache files|$HOME/Library/Caches/com.apple.dt.Xcode/*|ide_cache
|
Xcode internal cache files|$HOME/Library/Caches/com.apple.dt.Xcode/*|ide_cache
|
||||||
Xcode iOS device support symbols|$HOME/Library/Developer/Xcode/iOS DeviceSupport/*/Symbols/System/Library/Caches/*|ide_cache
|
Xcode iOS device support symbols|$HOME/Library/Developer/Xcode/iOS DeviceSupport/*/Symbols/System/Library/Caches/*|ide_cache
|
||||||
Maven local repository (Java dependencies)|$HOME/.m2/repository/*|ide_cache
|
Maven local repository (Java dependencies)|$HOME/.m2/repository/*|ide_cache
|
||||||
|
|||||||
Reference in New Issue
Block a user