Skip to content

A library with StringBuilder extension methods to make it easier to generate valid PlantUML diagrams using dotnet

License

Notifications You must be signed in to change notification settings

eNeRGy164/PlantUml.Builder

Repository files navigation

PlantUML Builder

.NET Core Coverage Status

PlantUML Builder is a library with StringBuilder extension methods to make it easier to generate valid PlantUML diagrams using .NET.

Example

The following code:

var stringBuilder = new StringBuilder();

stringBuilder.UmlDiagramStart();
stringBuilder.Arrow("Alice", "->", "Bob", "Authentication Request");
stringBuilder.Arrow("Bob", "-->", "Alice", "Authentication Response");
stringBuilder.AppendNewLine();
stringBuilder.Arrow("Alice", "->", "Bob", "Another authentication Request");
stringBuilder.Arrow("Alice", "<--", "Bob", "Another authentication Response");
stringBuilder.UmlDiagramEnd();

stringBuilder.ToString()

Generates the following output:

@startuml
Alice -> Bob : Authentication Request
Bob --> Alice : Authentication Response

Alice -> Bob : Another authentication Request
Alice <-- Bob : Another authentication Response
@enduml

Implemented commands status

See Implemented commands.

About

A library with StringBuilder extension methods to make it easier to generate valid PlantUML diagrams using dotnet

Topics

Resources

License

Stars

Watchers

Forks

Languages