This script can upload PlantUML scripts to the PlantUML server and download the built diagrams.
The following command uploads the hello.puml
file to the PlantUML server, then downloads the hello.png
diagram to the source directory.
PS> .\Build-PlantUML.ps1 -File 'hello.puml'
@startuml
Bob -> Alice : hello
@enduml
For example, the above script hello.puml
will be built as hello.png
.
The following command uploads the hello.puml
file to the PlantUML server, then downloads the hello.svg
diagram to the source directory.
PS> .\Build-PlantUML.ps1 -File 'hello.puml' -DiagramExtension 'svg'
The following command sends all .puml
files in the docs
directory to the PlantUML server, then downloads .png
diagrams to the source directory.
PS> .\Build-PlantUML.ps1 -Directory 'docs'
This command uploads all .txt
files in the current directory and its subdirectories to the PlantUML server, then downloads .svg
diagrams to the source directories.
PS> .\Build-PlantUML.ps1 -Recurse -ScriptExtension 'txt' -DiagramExtension 'svg'
Distributed under the MIT License. See LICENSE
for more information.