Ajustado criação de pastas com caracteres especiais

This commit is contained in:
victor
2026-05-14 11:32:52 -03:00
parent 7410422af7
commit 63759251a4
3 changed files with 38 additions and 9 deletions
+16 -2
View File
@@ -87,11 +87,24 @@ function Cleanup-VscodeMcpDir {
}
}
function Copy-VitruvioDocumentation {
$vitruvioDir = Join-Path $sourceDir 'Vitruvio'
$documentationDir = Get-ChildItem -LiteralPath $vitruvioDir -Directory | Where-Object {
(Test-Path -LiteralPath (Join-Path $_.FullName 'eventos-vitruvio.md')) -and
(Test-Path -LiteralPath (Join-Path $_.FullName 'queries-padroes.md'))
} | Select-Object -First 1
if ($null -eq $documentationDir) {
Fail 'Pasta de documentacao do Vitruvio nao encontrada na origem.'
}
New-Item -ItemType Directory -Path (Join-Path $targetFullPath 'Vitruvio') -Force | Out-Null
Copy-Entry (Join-Path 'Vitruvio' $documentationDir.Name)
}
function Create-BaseDirectories {
New-Item -ItemType Directory -Path (Join-Path $targetFullPath 'Andamento') -Force | Out-Null
New-Item -ItemType Directory -Path (Join-Path $targetFullPath 'Concluidos') -Force | Out-Null
New-Item -ItemType Directory -Path (Join-Path $targetFullPath 'Vitruvio\Documentação') -Force | Out-Null
New-Item -ItemType Directory -Path (Join-Path $targetFullPath 'Vitruvio\Documentação\Componentes') -Force | Out-Null
Write-Host 'Criadas pastas base do workspace'
}
@@ -109,6 +122,7 @@ Cleanup-VscodeMcpDir
Copy-Entry '.github'
Copy-Entry 'CLAUDE.md'
Copy-Entry '.mcp.json'
Copy-VitruvioDocumentation
Create-BaseDirectories
Write-Host "Workspace base criado em: $targetFullPath"