25 lines
840 B
PowerShell
25 lines
840 B
PowerShell
#!/usr/bin/env pwsh
|
|
<#
|
|
.SYNOPSIS
|
|
Resets the Module 06 challenge environment to start fresh.
|
|
|
|
.DESCRIPTION
|
|
This script removes the challenge directory and re-runs setup.ps1
|
|
to create a fresh challenge environment.
|
|
#>
|
|
|
|
Write-Host "`n=== Resetting Module 06: Git Reset Challenge ===" -ForegroundColor Cyan
|
|
|
|
# Check if challenge directory exists
|
|
if (Test-Path "challenge") {
|
|
Write-Host "Removing existing challenge directory..." -ForegroundColor Yellow
|
|
Remove-Item -Recurse -Force "challenge"
|
|
Write-Host "[OK] Challenge directory removed" -ForegroundColor Green
|
|
} else {
|
|
Write-Host "[INFO] No existing challenge directory found" -ForegroundColor Yellow
|
|
}
|
|
|
|
# Run setup to create fresh environment
|
|
Write-Host "`nRunning setup to create fresh challenge environment..." -ForegroundColor Cyan
|
|
& "$PSScriptRoot/setup.ps1"
|