CodeUML

A command line tool to generate class uml diagram from dart code. The tool supports PlantUml and mermaid.

Unrealized features

  • Generics
  • Getters, Setters
  • Enum
  • Global functions, variables

How to use

The first step is to perform the installation:

> dart pub global activate code_uml

Selecting a UML service

PlantUML

> code_uml --from=[<your_path_to_dir_input>] --to=[<your_path_to_dir_output>] --uml=plantuml

Mermaid

> code_uml --from=[<your_path_to_dir_input>] --to=[<your_path_to_dir_output>] --uml=mermaid

Output

File output

Then you need to run the command to output the code to the console:

> code_uml --from=[<your_path_to_dir_input>] --to=[<your_path_to_dir_output>]

Console output

Then you need to run the command to output the code to the console:

> code_uml --from=[<your_path_to_dir_input>] --to=console

Example

UML diagram

Libraries

code_uml
utils