Ajustado criação de pastas com caracteres especiais
This commit is contained in:
+16
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user