reverted goto, C version wasn't working and fish script wasn't working

This commit is contained in:
Joshua Ashton
2025-02-05 19:30:07 -07:00
parent 2c7488efad
commit 665681a1ec
2 changed files with 48 additions and 49 deletions
+14 -1
View File
@@ -8,7 +8,7 @@
# quaxlyqueen/scripts/ginit
# Supported languages.
TYPES=("c", "rust", "c-sharp", "aspnet", "java", "js", "t3", "python", "flutter", "go")
TYPES=("c", "rust", "c-sharp", "aspnet", "java", "js", "t3", "python", "flutter", "go", "php")
# Catch case where there are too many arguments.
if [[ $# -gt 3 ]]; then
@@ -157,6 +157,19 @@ elif [[ $LANG == "flutter" ]]; then
elif [[ $LANG == "t3" ]]; then
npm create t3-app@latest
elif [[ $LANG == "go" ]]; then
mkdir $NAME;
cd $NAME;
go mod init;
# Create a new Flutter/Dart project.
elif [[ $LANG == "php" ]]; then
mkdir $NAME
cd $NAME
cp -r ~/templates/web/php/index.php .
mark
fi
# If the user indicated the project will be a Git project, then run the ginit script.