-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add depth option for "file"command #18
Comments
IMO this would be super useful for really big projects where the |
Hi thank you for your request!
I know this isn't as cool as using the --depth feature, but maybe it can solve your problem directly ^^ |
When generating a graph for a file it would be nice to have an option to specify a
depth
for dependencies. A pratical example would be in a fileblahblah.go
I have a structA
that has a structB
as a property. When generating the diagram forblahblah.go
it would be awesome to be able to specify adepth
that followedA
properties to a certain depth.The following command:
go-plantuml generate -f model/blahblah.go --depth=1 -o graph.puml
would then generate a puml file of both
blahblah.go
as well as of the first level dependencies ofA
.Another example would be if
depth
is 2, it would mean that ifB
had a dependencyC
we should be able to request issuego-plantuml generate -f model/blahblah.go --depth=2 -o graph.puml
and see the relationships ofA
,B
andC
.The text was updated successfully, but these errors were encountered: