Created PlantUML generator
This commit is contained in:
parent
8f71fb50a3
commit
5cb96fb793
1 changed files with 16 additions and 0 deletions
16
generate_puml.ps1
Normal file
16
generate_puml.ps1
Normal 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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue