Public/Invoke-DevCleanup.ps1
|
function Invoke-DevCleanup { [CmdletBinding()] param( [Parameter()] [string]$Path = (Get-Location).Path ) $moduleRoot = Split-Path -Path $PSScriptRoot -Parent $privateRoot = Join-Path -Path $moduleRoot -ChildPath 'Private' $CleanupScript = Join-Path -Path $privateRoot -ChildPath 'Cleanup-DevXToolkit.ps1' if (-not (Test-Path $CleanupScript)) { throw "Cleanup engine missing: $CleanupScript" } . $CleanupScript -Path $Path Write-Host "Cleanup complete" -ForegroundColor Green } |