Closed nanvenomous closed 1 year ago
After some more time playing around it seems, since the business logic of a spf13/cobra
application is in the cmd
package the correct usage is to run:
go-callvis -focus "cmd" -group pkg,type -ignore github.com/spf13 ./...
from the root of your cobra project
I am trying to visualize a project I wrote which is a super simple CLI to run neovim sessions. I first ran a basic
after reading through the usage examples I have tried several combinations of the
go-callvis ./...
which yielded:-group
,-focus
, and-limit
flags, however all seem to give me way too muchspf13/cobra
or not enough of my actual packagenanvenomous/e
Tell me if I'm being naive, but is there a way to treat dependencies as a "black box" and just visualize all of the source of main module when the dependencies are a "pass-through" layer?