Initial import

This commit is contained in:
Michael Wolf
2020-05-22 10:44:52 -05:00
commit cf3493c9c5
4 changed files with 183 additions and 0 deletions

21
_reformat-common.sh Normal file
View File

@@ -0,0 +1,21 @@
function sniff_file_type () {
ff=$1
shift
file_type=
if [[ $ff == *.py ]] ; then
file_type="python"
elif [[ $ff == *.js ]] ; then
file_type="javascript"
elif [[ $ff == *.ts ]] ; then
file_type="typescript"
elif [[ $ff == *.vue ]] ; then
file_type="vue"
elif [[ $ff == *.css ]] ; then
file_type="css"
elif [[ $ff == *.php ]] ; then
file_type="php"
fi
echo $file_type
}