# GoFaster 开发环境启动脚本 Write-Host "========================================" -ForegroundColor Cyan Write-Host " GoFaster Development Environment" -ForegroundColor Cyan Write-Host "========================================" -ForegroundColor Cyan Write-Host "" Write-Host "选择启动模式:" -ForegroundColor Yellow Write-Host "1. 全栈启动 (前后端)" -ForegroundColor White Write-Host "2. 全栈启动 (调试模式)" -ForegroundColor White Write-Host "3. 全栈启动 (监听模式)" -ForegroundColor White Write-Host "4. 仅启动后端" -ForegroundColor White Write-Host "5. 仅启动前端" -ForegroundColor White Write-Host "" $choice = Read-Host "请输入选择 (1-5)" switch ($choice) { "1" { Write-Host "启动全栈开发环境..." -ForegroundColor Green & ".\dev-full.ps1" } "2" { Write-Host "启动全栈开发环境 (调试模式)..." -ForegroundColor Green & ".\dev-full.ps1" -Debug } "3" { Write-Host "启动全栈开发环境 (监听模式)..." -ForegroundColor Green & ".\dev-full.ps1" -Watch } "4" { Write-Host "仅启动后端..." -ForegroundColor Green & ".\dev-full.ps1" -BackendOnly } "5" { Write-Host "仅启动前端..." -ForegroundColor Green & ".\dev-full.ps1" -FrontendOnly } default { Write-Host "无效选择!" -ForegroundColor Red } } Write-Host "" Write-Host "按任意键退出..." -ForegroundColor Gray $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")