mirror of
https://github.com/tw93/Mole.git
synced 2026-02-11 13:34:23 +00:00
Add System Status Dashboard
This commit is contained in:
14
mole
14
mole
@@ -22,7 +22,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$SCRIPT_DIR/lib/common.sh"
|
||||
|
||||
# Version info
|
||||
VERSION="1.9.20"
|
||||
VERSION="1.10.0"
|
||||
MOLE_TAGLINE="can dig deep to clean your Mac."
|
||||
|
||||
# Get latest version from remote repository
|
||||
@@ -169,6 +169,7 @@ show_help() {
|
||||
printf " %s%-28s%s %s\n" "$GREEN" "mo uninstall" "$NC" "Remove applications completely"
|
||||
printf " %s%-28s%s %s\n" "$GREEN" "mo optimize" "$NC" "System health check & optimization"
|
||||
printf " %s%-28s%s %s\n" "$GREEN" "mo analyze" "$NC" "Interactive disk space explorer"
|
||||
printf " %s%-28s%s %s\n" "$GREEN" "mo status" "$NC" "System status dashboard"
|
||||
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 Mole to the latest version"
|
||||
printf " %s%-28s%s %s\n" "$GREEN" "mo remove" "$NC" "Remove Mole from the system"
|
||||
@@ -503,6 +504,7 @@ show_main_menu() {
|
||||
printf '\r\033[2K%s\n' "$(show_menu_option 2 "Uninstall Apps - Remove applications completely" "$([[ $selected -eq 2 ]] && echo true || echo false)")"
|
||||
printf '\r\033[2K%s\n' "$(show_menu_option 3 "Optimize Mac - System health & tuning" "$([[ $selected -eq 3 ]] && echo true || echo false)")"
|
||||
printf '\r\033[2K%s\n' "$(show_menu_option 4 "Analyze Disk - Interactive space explorer" "$([[ $selected -eq 4 ]] && echo true || echo false)")"
|
||||
printf '\r\033[2K%s\n' "$(show_menu_option 5 "System Status - Live CPU/GPU/memory" "$([[ $selected -eq 5 ]] && echo true || echo false)")"
|
||||
|
||||
if [[ -t 0 ]]; then
|
||||
printf '\r\033[2K\n'
|
||||
@@ -566,7 +568,7 @@ interactive_main_menu() {
|
||||
|
||||
case "$key" in
|
||||
"UP") ((current_option > 1)) && ((current_option--)) ;;
|
||||
"DOWN") ((current_option < 4)) && ((current_option++)) ;;
|
||||
"DOWN") ((current_option < 5)) && ((current_option++)) ;;
|
||||
"ENTER")
|
||||
show_cursor
|
||||
case $current_option in
|
||||
@@ -574,6 +576,7 @@ interactive_main_menu() {
|
||||
2) exec "$SCRIPT_DIR/bin/uninstall.sh" ;;
|
||||
3) exec "$SCRIPT_DIR/bin/optimize.sh" ;;
|
||||
4) exec "$SCRIPT_DIR/bin/analyze.sh" ;;
|
||||
5) exec "$SCRIPT_DIR/bin/status.sh" ;;
|
||||
esac
|
||||
;;
|
||||
"CHAR:1")
|
||||
@@ -592,6 +595,10 @@ interactive_main_menu() {
|
||||
show_cursor
|
||||
exec "$SCRIPT_DIR/bin/analyze.sh"
|
||||
;;
|
||||
"CHAR:5")
|
||||
show_cursor
|
||||
exec "$SCRIPT_DIR/bin/status.sh"
|
||||
;;
|
||||
"HELP")
|
||||
show_cursor
|
||||
clear
|
||||
@@ -626,6 +633,9 @@ main() {
|
||||
"analyze")
|
||||
exec "$SCRIPT_DIR/bin/analyze.sh" "${@:2}"
|
||||
;;
|
||||
"status")
|
||||
exec "$SCRIPT_DIR/bin/status.sh" "${@:2}"
|
||||
;;
|
||||
"touchid")
|
||||
exec "$SCRIPT_DIR/bin/touchid.sh" "${@:2}"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user