diff --git a/README.md b/README.md index 9b131f3..1677996 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,17 @@ the PlantUML source in the `example/` directory. **Install from pub:** -`pub global activate dcdg` +`dart pub global activate dcdg` **Install from clone:** -`pub global activate -s path .` +`dart pub global activate -s path .` ## Usage From inside a Dart package directory: -`pub global run dcdg` +`dart pub global run dcdg` This will dump a PlantUML file to stdout. You can save it to a file instead with the `-o` option. @@ -60,3 +60,4 @@ Run the full test suite (including unit and functional tests) with If you change the user interface or add features you should run `tool/docs.sh` to regenerate documentation and other resources. This script requires [PlantUML](https://plantuml.com/). + diff --git a/example/dcdg.png b/example/dcdg.png index e6df57e..f9b73b7 100644 Binary files a/example/dcdg.png and b/example/dcdg.png differ diff --git a/example/dcdg.puml b/example/dcdg.puml index cc8a304..592bf0e 100644 --- a/example/dcdg.puml +++ b/example/dcdg.puml @@ -136,11 +136,15 @@ class "dcdg::src::diagram_visitor.dart::DiagramVisitor" { +void visitMethodElement() } +"analyzer::dart::element::visitor.dart::RecursiveElementVisitor" <|-- "dcdg::src::diagram_visitor.dart::DiagramVisitor" + class "dcdg::src::class_element_collector.dart::ClassElementCollector" { +Iterable classElements +void visitClassElement() +void visitExportElement() } +"analyzer::dart::element::visitor.dart::RecursiveElementVisitor" <|-- "dcdg::src::class_element_collector.dart::ClassElementCollector" + @enduml \ No newline at end of file diff --git a/lib/src/version.dart b/lib/src/version.dart index e913c82..72443e1 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1 +1 @@ -const version = '3.1.1'; +const version = '4.0.0'; diff --git a/pubspec.yaml b/pubspec.yaml index 40c9a8b..4590431 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: dcdg description: A tool to automatically generate class diagrams (like UML) from a Dart package. -version: 3.1.1 +version: 4.0.0 homepage: https://github.com/glesica/dcdg.dart executables: dcdg: