depscheck icon indicating copy to clipboard operation
depscheck copied to clipboard

Supporting "depscheck ./..."

Open MohamedBassem opened this issue 8 years ago • 2 comments

I'd love to see a support for doing the stats recursively on all the sub packages of a certain package excluding the vendor directory. Thanks.

MohamedBassem avatar Mar 31 '16 14:03 MohamedBassem

Good point. Definitely should be added.

divan avatar Mar 31 '16 15:03 divan

In case it's helpful to see a snippet of how to convert packages command-line arguments into a list of full import paths (i.e., all relative import paths converted to full), feel free to look at (and take anything from) how I did it in goimporters:

https://github.com/shurcooL/cmd/blob/7e11c3fd82ef2870d535b0fed43ecf83d5f8cab5/goimporters/main.go#L52-L60

dmitshur avatar Mar 31 '16 17:03 dmitshur