refactor: create the answers.md

This commit is contained in:
Bjarke Sporring
2026-01-05 12:21:30 +01:00
parent ceb5bd8031
commit e1b8d8418a
3 changed files with 70 additions and 23 deletions

View File

@@ -29,16 +29,16 @@ if (-not (Test-Path ".git")) {
exit 1
}
# Check if answers.txt exists
if (-not (Test-Path "answers.txt")) {
Write-Host "[FAIL] answers.txt not found. Create this file with your answers." -ForegroundColor Red
Write-Host "[HINT] Review the questions in README.md and create answers.txt" -ForegroundColor Yellow
# Check if answers.md exists
if (-not (Test-Path "answers.md")) {
Write-Host "[FAIL] answers.md not found. Did you run setup.ps1?" -ForegroundColor Red
Write-Host "[HINT] The setup script should have created answers.md for you" -ForegroundColor Yellow
$allChecksPassed = $false
} else {
Write-Host "[PASS] answers.txt exists" -ForegroundColor Green
Write-Host "[PASS] answers.md exists" -ForegroundColor Green
# Read the answers file
$answers = Get-Content "answers.txt" -Raw
$answers = Get-Content "answers.md" -Raw
$answersLower = $answers.ToLower()
# Check 1: Contains "5" or "five" for commit count