tally is a CLI tool that counts the physical lines of source code in most programming languages within a directory or GitHub repository.
brew install ahmedsaheed/tally/tally
$ tally --help
Tally Usage:
tally [directory|github-repo] [flags]
Flags:
-r, --remote Tally up a public github repository
-b, --blame Tally a directory and show all file counts per language
-h, --help Help for tally
-x, --html Generate an html report