# setup-hooks.ps1 Write-Host "πŸ”§ Setting up Git hooks..." -ForegroundColor Cyan Write-Host "" # .git/hooks 디렉토리 쑴재 확인 if (-not (Test-Path ".git\hooks")) { Write-Host "❌ .git\hooks 디렉토리λ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€." -ForegroundColor Red Write-Host "πŸ’‘ Git μ €μž₯μ†Œ λ£¨νŠΈμ—μ„œ μ‹€ν–‰ν•˜μ„Έμš”." -ForegroundColor Yellow exit 1 } # hooks 볡사 Write-Host "πŸ“‹ Copying hook files..." -ForegroundColor Yellow try { Copy-Item -Path "git-hooks\pre-commit" -Destination ".git\hooks\pre-commit" -Force Write-Host "βœ… Git hooks installed!" -ForegroundColor Green Write-Host "" Write-Host "Installed hooks:" -ForegroundColor Cyan Write-Host " - pre-commit: XLSX 데이터 검증" -ForegroundColor White } catch { Write-Host "❌ Hook 파일 볡사 μ‹€νŒ¨: $_" -ForegroundColor Red exit 1 }