sea_transport_project/generate_puml.ps1
2020-12-15 19:24:28 +07:00

16 lines
No EOL
384 B
PowerShell

$pumlFile = "output.puml"
if (Test-Path $pumlFile) {
Write-Host Found old file. Resolution: delete
Remove-Item $pumlFile
}
$cmd = "hpp2plantuml -i *.h"
# hpp2plantuml -i *.h -i entities\*.h -o output.puml
foreach ($dir in $(Get-ChildItem -Path $Source -Directory -Recurse)) {
$cmd += " -i '$($dir.FullName)\*.h'"
}
$cmd += " -o $pumlFile"
Invoke-Expression $cmd
Exit(0)