using cloc to count lines of codes in sub folders

8.5k views Asked by At

My Operating System is Windows. I have a main folder that contains projects within each sub folders. I want to report on each folder with foldername.txt. Then later I can sum them up with --sum-reports option. I looked at their options can't find a way to do it. Maybe I missed it.

Here is their GitHub and description.

I have tried:

cloc-1.64.exe \\servername\mainfolder\ --report_file=everything

This only gives me one file listed by languages in all sub folders.

I also tried

cloc-1.64.exe \\servername\mainfolder\ --report_file=.\*.txt

cloc obviously doesn't like it.

1

There are 1 answers

1
AudioBubble On

You could try

cloc YOURFOLDERNAME

and only that