Skip to content
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 option for only in current directory #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

michaelzenz
Copy link

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
Copy link
Owner

kisielk commented Mar 5, 2021

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

@michaelzenz
Copy link
Author

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
Copy link
Owner

kisielk commented Mar 8, 2021

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

@michaelzenz
Copy link
Author

yes, -o, sry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants