mirror of
https://github.com/tw93/Mole.git
synced 2026-02-09 23:09:17 +00:00
feat: add repair command with cache rebuilds and system fixes
Add new 'mole repair' command with the following utilities: - DNS cache flush (Repair-DnsCache) - Font cache rebuild (Repair-FontCache) - requires admin - Icon cache rebuild (Repair-IconCache) - restarts Explorer - Windows Search index reset (Repair-SearchIndex) - requires admin - Windows Store cache reset (Repair-StoreCache) - runs wsreset.exe Features: - Interactive menu when run without arguments - Command-line flags: -DNS, -Font, -Icon, -Search, -Store, -All - Dry-run mode support - Proper service stop/start for font and search repairs Usage: mole repair # Interactive menu mole repair -DNS # Flush DNS only mole repair -All # Run all repairs
This commit is contained in:
9
mole.ps1
9
mole.ps1
@@ -62,6 +62,7 @@ function Show-MainHelp {
|
||||
Write-Host " ${cyan}analyze${nc} Visual disk space analyzer"
|
||||
Write-Host " ${cyan}status${nc} Real-time system monitor"
|
||||
Write-Host " ${cyan}optimize${nc} System optimization tasks"
|
||||
Write-Host " ${cyan}repair${nc} Cache rebuilds and system fixes"
|
||||
Write-Host " ${cyan}purge${nc} Clean project build artifacts"
|
||||
Write-Host ""
|
||||
Write-Host " ${green}OPTIONS:${nc}"
|
||||
@@ -78,6 +79,8 @@ function Show-MainHelp {
|
||||
Write-Host " ${gray}mole analyze${nc} ${gray}# Disk analyzer${nc}"
|
||||
Write-Host " ${gray}mole status${nc} ${gray}# System monitor${nc}"
|
||||
Write-Host " ${gray}mole optimize${nc} ${gray}# Optimize system${nc}"
|
||||
Write-Host " ${gray}mole repair -DNS${nc} ${gray}# Flush DNS cache${nc}"
|
||||
Write-Host " ${gray}mole repair -All${nc} ${gray}# Run all repairs${nc}"
|
||||
Write-Host " ${gray}mole purge${nc} ${gray}# Clean dev artifacts${nc}"
|
||||
Write-Host ""
|
||||
Write-Host " ${green}ENVIRONMENT:${nc}"
|
||||
@@ -125,6 +128,12 @@ function Show-MainMenu {
|
||||
Command = "optimize"
|
||||
Icon = $script:Icons.Arrow
|
||||
}
|
||||
@{
|
||||
Name = "Repair"
|
||||
Description = "Cache rebuilds & fixes"
|
||||
Command = "repair"
|
||||
Icon = $script:Icons.Admin
|
||||
}
|
||||
@{
|
||||
Name = "Purge"
|
||||
Description = "Clean dev artifacts"
|
||||
|
||||
Reference in New Issue
Block a user