diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index fcffbbe..1838311 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -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" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0be7ae1..bf5f3f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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" diff --git a/.mailmap b/.mailmap deleted file mode 100644 index 39679ec..0000000 --- a/.mailmap +++ /dev/null @@ -1,6 +0,0 @@ -# Map bot accounts to Tw93 -# Format: Preferred Name Commit Name - -Tw93 github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> -Tw93 Bot -Tw93 copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> diff --git a/README.md b/README.md index 529b0e5..9147247 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/bin/uninstall.sh b/bin/uninstall.sh index b30f136..2c24329 100755 --- a/bin/uninstall.sh +++ b/bin/uninstall.sh @@ -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 diff --git a/install.sh b/install.sh index c0de028..d2e0068 100755 --- a/install.sh +++ b/install.sh @@ -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 "" } diff --git a/lib/core/ui.sh b/lib/core/ui.sh index 72332f1..0edae11 100755 --- a/lib/core/ui.sh +++ b/lib/core/ui.sh @@ -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') diff --git a/mole b/mole index d3328e9..3e37bf1 100755 --- a/mole +++ b/mole @@ -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"