eNeRGy164 / PlantUml.Builder

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:C# 100.0%