update to newproject and run scripts to include python

This commit is contained in:
Josh Ashton
2023-06-23 15:20:35 -06:00
parent 243808ac82
commit 5e3db229df
3 changed files with 20 additions and 6 deletions
+7 -1
View File
@@ -1,7 +1,7 @@
#!/bin/zsh
# Supported languages.
TYPES=("c", "cs", "java", "js", "go")
TYPES=("c", "cs", "java", "js", "python", "go")
# Catch case where there are too many arguments.
if [[ $# -gt 1 ]]; then
@@ -119,6 +119,12 @@ elif [[ $TYPE == "js" ]]; then
echo "Output..."
node $NAME.js
# Run Python app.
elif [[ $TYPE == "py" ]]; then
clear
echo "Running..."
python $FILE.py
# Run Golang app.
elif [[ $TYPE == "go" ]]; then
clear