update to newproject and run scripts to include python
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user