1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 13:16:47 +00:00

chore: clean bot commits and improve documentation

- Merged all bot commits (github-actions, Bot) into Tw93 account
     - Fixed M/U/T key bindings in main menu
     - Updated help menu and README command order
     - Improved install script output
     - Updated GitHub Actions to use Tw93 identity
This commit is contained in:
Tw93
2025-12-10 14:12:43 +08:00
parent 5b73e4ffad
commit 3e50a103f6
8 changed files with 49 additions and 43 deletions

View File

@@ -49,8 +49,8 @@ jobs:
- name: Commit formatting changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "Tw93"
git config user.email "tw93@qq.com"
if [[ -n $(git status --porcelain) ]]; then
git add .
git commit -m "chore: auto format code"

View File

@@ -47,8 +47,8 @@ jobs:
- name: Commit binaries for release
run: |
git config user.name "Bot"
git config user.email "noreply@github.com"
git config user.name "Tw93"
git config user.email "tw93@qq.com"
git add bin/analyze-go bin/status-go
if git diff --staged --quiet; then
echo "No binary changes to commit"

View File

@@ -1,6 +0,0 @@
# Map bot accounts to Tw93
# Format: Preferred Name <preferred@email> Commit Name <commit@email>
Tw93 <tw93@qq.com> github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tw93 <tw93@qq.com> Bot <noreply@github.com>
Tw93 <tw93@qq.com> copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

View File

@@ -41,21 +41,23 @@ brew install tw93/tap/mole
**Run:**
```bash
mo # Interactive menu
mo clean # Deep cleanup
mo clean --dry-run # Preview cleanup plan
mo clean --whitelist # Adjust protected caches
mo uninstall # Remove apps + leftovers
mo optimize # Refresh caches & services
mo optimize --whitelist # Adjust protected optimization items
mo analyze # Visual disk explorer
mo status # Live system health dashboard
mo # Interactive menu
mo clean # Deep cleanup
mo uninstall # Remove apps + leftovers
mo optimize # Refresh caches & services
mo analyze # Visual disk explorer
mo status # Live system health dashboard
mo touchid # Configure Touch ID for sudo
mo update # Update Mole
mo remove # Remove Mole from system
mo --help # Show help
mo --version # Show installed version
mo touchid # Configure Touch ID for sudo
mo update # Update Mole
mo remove # Remove Mole from system
mo --help # Show help
mo --version # Show installed version
mo clean --dry-run # Preview cleanup plan
mo clean --whitelist # Adjust protected caches
mo uninstall --force-rescan # Rescan apps and refresh cache
mo optimize --whitelist # Adjust protected optimization items
```

View File

@@ -3,8 +3,8 @@
# Interactive application uninstaller with keyboard navigation
#
# Usage:
# uninstall.sh # Launch interactive uninstaller
# uninstall.sh --help # Show help information
# uninstall.sh # Launch interactive uninstaller
# uninstall.sh --force-rescan # Rescan apps and refresh cache
set -euo pipefail

View File

@@ -405,21 +405,25 @@ print_usage_summary() {
echo ""
echo "Usage:"
if [[ ":$PATH:" == *":$INSTALL_DIR:"* ]]; then
echo " mo # Interactive menu"
echo " mo clean # System cleanup"
echo " mo uninstall # Remove applications"
echo " mo update # Update Mole to the latest version"
echo " mo remove # Remove Mole from the system"
echo " mo --version # Show installed version"
echo " mo --help # Show this help message"
echo " mo # Interactive menu"
echo " mo clean # Deep cleanup"
echo " mo uninstall # Remove apps + leftovers"
echo " mo optimize # Check and maintain system"
echo " mo analyze # Explore disk usage"
echo " mo status # Monitor system health"
echo " mo touchid # Configure Touch ID for sudo"
echo " mo update # Update to latest version"
echo " mo --help # Show all commands"
else
echo " $INSTALL_DIR/mo # Interactive menu"
echo " $INSTALL_DIR/mo clean # System cleanup"
echo " $INSTALL_DIR/mo uninstall # Remove applications"
echo " $INSTALL_DIR/mo update # Update Mole to the latest version"
echo " $INSTALL_DIR/mo remove # Remove Mole from the system"
echo " $INSTALL_DIR/mo --version # Show installed version"
echo " $INSTALL_DIR/mo --help # Show this help message"
echo " $INSTALL_DIR/mo # Interactive menu"
echo " $INSTALL_DIR/mo clean # Deep cleanup"
echo " $INSTALL_DIR/mo uninstall # Remove apps + leftovers"
echo " $INSTALL_DIR/mo optimize # Check and maintain system"
echo " $INSTALL_DIR/mo analyze # Explore disk usage"
echo " $INSTALL_DIR/mo status # Monitor system health"
echo " $INSTALL_DIR/mo touchid # Configure Touch ID for sudo"
echo " $INSTALL_DIR/mo update # Update to latest version"
echo " $INSTALL_DIR/mo --help # Show all commands"
fi
echo ""
}

View File

@@ -52,6 +52,9 @@ read_key() {
'/') echo "FILTER" ;;
'q' | 'Q') echo "QUIT" ;;
'R') echo "RETRY" ;;
'm' | 'M') echo "MORE" ;;
'u' | 'U') echo "UPDATE" ;;
't' | 'T') echo "TOUCHID" ;;
$'\x03') echo "QUIT" ;;
$'\x7f' | $'\x08') echo "DELETE" ;;
$'\x1b')

9
mole
View File

@@ -190,8 +190,6 @@ show_help() {
printf "%s%s%s\n" "$BLUE" "COMMANDS" "$NC"
printf " %s%-28s%s %s\n" "$GREEN" "mo" "$NC" "Main menu"
printf " %s%-28s%s %s\n" "$GREEN" "mo clean" "$NC" "Free up disk space"
printf " %s%-28s%s %s\n" "$GREEN" "mo clean --dry-run" "$NC" "Preview cleanup"
printf " %s%-28s%s %s\n" "$GREEN" "mo clean --whitelist" "$NC" "Manage protected caches"
printf " %s%-28s%s %s\n" "$GREEN" "mo uninstall" "$NC" "Remove apps completely"
printf " %s%-28s%s %s\n" "$GREEN" "mo optimize" "$NC" "Check and maintain system"
printf " %s%-28s%s %s\n" "$GREEN" "mo analyze" "$NC" "Explore disk usage"
@@ -199,8 +197,13 @@ show_help() {
printf " %s%-28s%s %s\n" "$GREEN" "mo touchid" "$NC" "Configure Touch ID for sudo"
printf " %s%-28s%s %s\n" "$GREEN" "mo update" "$NC" "Update to latest version"
printf " %s%-28s%s %s\n" "$GREEN" "mo remove" "$NC" "Remove Mole from system"
printf " %s%-28s%s %s\n" "$GREEN" "mo --version" "$NC" "Show version"
printf " %s%-28s%s %s\n" "$GREEN" "mo --help" "$NC" "Show help"
printf " %s%-28s%s %s\n" "$GREEN" "mo --version" "$NC" "Show version"
echo
printf " %s%-28s%s %s\n" "$GREEN" "mo clean --dry-run" "$NC" "Preview cleanup"
printf " %s%-28s%s %s\n" "$GREEN" "mo clean --whitelist" "$NC" "Manage protected caches"
printf " %s%-28s%s %s\n" "$GREEN" "mo uninstall --force-rescan" "$NC" "Rescan apps and refresh cache"
printf " %s%-28s%s %s\n" "$GREEN" "mo optimize --whitelist" "$NC" "Manage protected items"
echo
printf "%s%s%s\n" "$BLUE" "OPTIONS" "$NC"
printf " %s%-28s%s %s\n" "$GREEN" "--debug" "$NC" "Show detailed operation logs"