Adding script to count the lines of code in the project

This commit is contained in:
Michael Lazar
2017-09-06 18:01:05 -04:00
parent da5e1b062c
commit f34bb7e9bb

15
scripts/count_lines.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
cd ${ROOT}
echo -e "\nTests: "
echo "$(wc -l tests/*.py)"
echo -e "\nScripts: "
echo "$(wc -l scripts/*)"
echo -e "\nTemplates: "
echo "$(wc -l rtv/templates/*)"
echo -e "\nCode: "
echo "$(wc -l rtv/*.py)"
echo -e "\nCombined: "
echo "$(cat tests/*.py scripts/* rtv/templates/* rtv/*.py | wc -l) total lines"