Created PlantUML generator

This commit is contained in:
Andrew nuark G 2020-12-15 19:24:28 +07:00
parent 8f71fb50a3
commit 5cb96fb793

16
generate_puml.ps1 Normal file
View file

@ -0,0 +1,16 @@
$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)