kisielk / godepgraph

A Go dependency graph visualization tool
MIT License
1.05k stars 90 forks source link

add option for only in current directory #42

Open michaelzenz opened 3 years ago

michaelzenz commented 3 years ago

While i am using it, i got a problem that i cannot let godepgraph draw dependencies only in my project directory with -p flag, so adding this feature

kisielk commented 3 years ago

Can you give some more details on what your problem with the -p flag is?

michaelzenz commented 3 years ago

Can you give some more details on what your problem with the -p flag is?

Suppose the file tree looks like this:

├── example
│   └── code
│       ├── main.go //here main.go imports pkg
│   └── pkg
│       ├── include.go

and suppose i am now under dir example, so the problem is when I do godegraph code/main.go, and use -p example, include.go will still be filter out.

kisielk commented 3 years ago

Do you mean -o? -p is for filtering out prefixes. (alias for -ignoreprefixes)

michaelzenz commented 3 years ago

yes, -o, sry