swift-auto-diagram icon indicating copy to clipboard operation
swift-auto-diagram copied to clipboard

Flag to only take into account your projects classes, not Apple or third party libraries.

Open carlosandresSanchez opened this issue 6 years ago • 2 comments

The script generates a complex diagram with thousands of classes because I'm using several libraries like RxSwift. Is there a way to only display the classes of your own project?

carlosandresSanchez avatar Feb 10 '19 00:02 carlosandresSanchez

Hello @carlosandresSanchez,

Thank you very much for your interest in the project. Yes, there is a way to specify which exact files or folders you want to create a diagram for. I quote this from the Readme file:

You can specify any number of command line arguments which should be existing directory or file paths. The directories will be searched in depth for swift files recursively.

Let us know whether this solves your issue with too many displayed entities.

yoshimkd avatar Feb 10 '19 22:02 yoshimkd

If I run ruby generateEntityDiagram.rb ~/code/myproject/ it still includes native classes, for example String. Is this intended? It would be great to exclude them.

Thanks for such a cool project!

lewis-smith avatar Jul 27 '19 16:07 lewis-smith