dev-resources.site
for different kinds of informations.
Handy Bash/Zsh function to generate PlantUML diagrams
Published at
6/6/2020
Categories
tooltips
plantuml
bash
Author
namuan
Author
6 person written this
namuan
open
In this short clip, we'll look at creating a simple Bash/Zsh function wrapping PlantUML so that we can use it from anywhere.
Requirements:
- PlantUML: Direct Download
Download it where you can easily refer to it.
nmn$ ls -l $TOOLS_HOME/plantuml/plantuml.jar
-rw-r--r--@ 1 nmn staff 7985304 9 Nov 2019 /Users/nmn/tools/plantuml/plantuml.jar
Next, we'll create a function and put that in bash/zsh profile so that it can be loaded automatically on each session.
function plantuml() {
NAME=$1
cat $NAME | java -DPLANTUML_LIMIT_SIZE=8192 -jar $TOOLS_HOME/plantuml/plantuml.jar -pipe > $NAME.png
open $NAME.png
}
Then you can call this function with the file name.
plantuml sample.png
Once you have it setup, this will convert the provided plantuml file to a PNG image and open it up using the default PNG viewer.
Here it is in action
📝:
👉 Tested on MacOS but should work on earlier versions and all flavours of Linux
plantuml Article's
28 articles in total
Run devcontainers as a non-root user
read article
PlantUML to compute diagrams!
read article
PlantUMLApp 3.0 - Let's play with AI Multi-Modality
read article
Create UML Class Diagrams for Java projects with IntelliJ IDEA and PlantUML
read article
Teoria | Documentando arquitetura de software com C4 Model + Plant UML
read article
Por que representar a arquitetura de uma aplicação em diagramas?
read article
Building a TypeScript-Compatible Webpack Loader: A PlantUML Mind Map Example
read article
PlantUML4iPad 2.0
read article
Documentation as Code for Cloud - PlantUML
read article
PlantUML and Jira: Combining Forces to Simplify Gantt Chart Creation
read article
PlantUML meets OpenAI on iPad
read article
Draw.io + PlantUML - Como tornar mais fácil o processo de documentação
read article
Create Nice-looking Schema Diagrams in PlantUML
read article
Keep your diagrams updated with continuous delivery
read article
Generate class diagrams with a Kotlin DSL for PlantUML
read article
Automatic C4 diagrams for a distributed microservice ecosystem with GitHub Actions
read article
PlantUML tips and tricks
read article
"Diagram as code"
read article
Software architecture documentation - Made easy with arc42 and C4
read article
Introduce the new PlantUML IntelliJ Plugin, which has high functionality editor!
read article
PlantUML y C4
read article
Text based diagramming
read article
Software architecture diagrams - which tool should we use?
read article
Modelling software architecture with PlantUML
read article
How to draw ER diagram with code using plantuml
read article
rewrite plantuml with golang or rust
read article
Bash/Zsh function to export SVG diagrams using PlantUML
read article
Handy Bash/Zsh function to generate PlantUML diagrams
currently reading
Featured ones: