AlexKnauth / syntax-sloc

counts the number of source lines of code in a racket syntax object
MIT License
3 stars 1 forks source link

Count sloc of packages? #8

Open jackfirth opened 7 years ago

jackfirth commented 7 years ago

A -p flag to raco sloc to interpret the arguments as names of installed packages would be very helpful to me.

AlexKnauth commented 7 years ago

I don't know much about the raco pkg tools, so I don't know whether there are any existing functions that convert a package name into a list of source files, or what tools I could use to make one.

I don't think I'll have much time in the next ~week through. If you need it before that, then if you or someone else can figure out that pkg end I can do the rest.

jackfirth commented 7 years ago

The pkg-directory function in pkg/lib would be where to start I think. I don't have an immediate need for this and I don't think it'd be hard for me to implement and open a PR when I do, so no rush.

AlexKnauth commented 7 years ago

Okay, thanks! Would the pkg-sloc function in the new pkg-sloc branch do what you need?

jackfirth commented 7 years ago

Yup, that looks like it ought to work! If / when I get the time, I can send a PR to add the raco integration.