CodeUML

How to use

The first step is to perform the installation:

dart pub global activate code_uml

Console

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

code_uml [<your_path_to_dir>] --console

For example:

code_uml /home/user/my_dir_code/first_dir  --console

or

code_uml /home/user/my_dir_code/first_dir /home/user/my_dir_code/first_dir --console

File

If you want to output the result to a file, then run the command:

code_uml [<your_path_to_dir>] <path_output_file>

For example:

code_uml /home/user/my_dir_code/first_dir  /home/user/documents/uml.txt

Converter

PlantUML

This library supports PlantUML for drawing diagrams so far.

To convert the result to an svg file, download this library, then run the command:

Linux

Mac Os

brew install graphviz

Windows

Then

java -jar <path_to_jar_file> <path_your_file_with_uml_code> -svg

Example SVG

UML diagram of Provider.

Libraries

code_uml