mirror of
https://github.com/tw93/Mole.git
synced 2026-02-10 03:14:17 +00:00
Support the quick use of Raycast, Alfred and Shortcuts
This commit is contained in:
32
integrations/raycast/mole-clean-dry-run.sh
Executable file
32
integrations/raycast/mole-clean-dry-run.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Required parameters:
|
||||
# @raycast.schemaVersion 1
|
||||
# @raycast.title Clean Mac (Dry Run)
|
||||
# @raycast.mode fullOutput
|
||||
# @raycast.packageName Mole
|
||||
|
||||
# Optional parameters:
|
||||
# @raycast.icon 👀
|
||||
# @raycast.needsConfirmation false
|
||||
|
||||
# Documentation:
|
||||
# @raycast.description Preview what Mole would clean without making changes
|
||||
# @raycast.author tw93
|
||||
# @raycast.authorURL https://github.com/tw93/Mole
|
||||
|
||||
# Detect mo/mole installation
|
||||
if command -v mo >/dev/null 2>&1; then
|
||||
MO_BIN="mo"
|
||||
elif command -v mole >/dev/null 2>&1; then
|
||||
MO_BIN="mole"
|
||||
else
|
||||
echo "❌ Mole not found. Install from:"
|
||||
echo " https://github.com/tw93/Mole"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run dry-run
|
||||
echo "👀 Previewing cleanup..."
|
||||
echo ""
|
||||
"$MO_BIN" clean --dry-run
|
||||
32
integrations/raycast/mole-clean.sh
Executable file
32
integrations/raycast/mole-clean.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Required parameters:
|
||||
# @raycast.schemaVersion 1
|
||||
# @raycast.title Clean Mac
|
||||
# @raycast.mode fullOutput
|
||||
# @raycast.packageName Mole
|
||||
|
||||
# Optional parameters:
|
||||
# @raycast.icon 🐹
|
||||
# @raycast.needsConfirmation true
|
||||
|
||||
# Documentation:
|
||||
# @raycast.description Deep clean your Mac using Mole
|
||||
# @raycast.author tw93
|
||||
# @raycast.authorURL https://github.com/tw93/Mole
|
||||
|
||||
# Detect mo/mole installation
|
||||
if command -v mo >/dev/null 2>&1; then
|
||||
MO_BIN="mo"
|
||||
elif command -v mole >/dev/null 2>&1; then
|
||||
MO_BIN="mole"
|
||||
else
|
||||
echo "❌ Mole not found. Install from:"
|
||||
echo " https://github.com/tw93/Mole"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run cleanup
|
||||
echo "🐹 Starting cleanup..."
|
||||
echo ""
|
||||
"$MO_BIN" clean
|
||||
32
integrations/raycast/mole-uninstall.sh
Executable file
32
integrations/raycast/mole-uninstall.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Required parameters:
|
||||
# @raycast.schemaVersion 1
|
||||
# @raycast.title Uninstall Apps
|
||||
# @raycast.mode fullOutput
|
||||
# @raycast.packageName Mole
|
||||
|
||||
# Optional parameters:
|
||||
# @raycast.icon 🗑️
|
||||
# @raycast.needsConfirmation true
|
||||
|
||||
# Documentation:
|
||||
# @raycast.description Completely uninstall apps using Mole
|
||||
# @raycast.author tw93
|
||||
# @raycast.authorURL https://github.com/tw93/Mole
|
||||
|
||||
# Detect mo/mole installation
|
||||
if command -v mo >/dev/null 2>&1; then
|
||||
MO_BIN="mo"
|
||||
elif command -v mole >/dev/null 2>&1; then
|
||||
MO_BIN="mole"
|
||||
else
|
||||
echo "❌ Mole not found. Install from:"
|
||||
echo " https://github.com/tw93/Mole"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run uninstall
|
||||
echo "🗑️ Starting app uninstaller..."
|
||||
echo ""
|
||||
"$MO_BIN" uninstall
|
||||
Reference in New Issue
Block a user