mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 07:11:11 +00:00
chore: Remove --force-rescan option from uninstall command and script.
This commit is contained in:
@@ -57,7 +57,7 @@ mo --version # Show installed version
|
|||||||
|
|
||||||
mo clean --dry-run # Preview the cleanup plan
|
mo clean --dry-run # Preview the cleanup plan
|
||||||
mo clean --whitelist # Manage protected caches
|
mo clean --whitelist # Manage protected caches
|
||||||
mo uninstall --force-rescan # Rescan applications and refresh cache
|
|
||||||
mo optimize --whitelist # Manage protected optimization rules
|
mo optimize --whitelist # Manage protected optimization rules
|
||||||
mo purge --paths # Configure project scan directories
|
mo purge --paths # Configure project scan directories
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# uninstall.sh # Launch interactive uninstaller
|
# uninstall.sh # Launch interactive uninstaller
|
||||||
# uninstall.sh --force-rescan # Rescan apps and refresh cache
|
# uninstall.sh # Launch interactive uninstaller
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
@@ -370,14 +370,12 @@ trap cleanup EXIT INT TERM
|
|||||||
|
|
||||||
main() {
|
main() {
|
||||||
local force_rescan=false
|
local force_rescan=false
|
||||||
|
# Parse global flags locally if needed (currently none specific to uninstall)
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
"--debug")
|
"--debug")
|
||||||
export MO_DEBUG=1
|
export MO_DEBUG=1
|
||||||
;;
|
;;
|
||||||
"--force-rescan")
|
|
||||||
force_rescan=true
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
2
mole
2
mole
@@ -285,7 +285,7 @@ show_help() {
|
|||||||
echo
|
echo
|
||||||
printf " %s%-28s%s %s\n" "$GREEN" "mo clean --dry-run" "$NC" "Preview cleanup"
|
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 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"
|
printf " %s%-28s%s %s\n" "$GREEN" "mo optimize --whitelist" "$NC" "Manage protected items"
|
||||||
printf " %s%-28s%s %s\n" "$GREEN" "mo purge --paths" "$NC" "Configure scan directories"
|
printf " %s%-28s%s %s\n" "$GREEN" "mo purge --paths" "$NC" "Configure scan directories"
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user