Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.26 KB

readme.md

File metadata and controls

40 lines (28 loc) · 1.26 KB

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.