reverted goto, C version wasn't working and fish script wasn't working
This commit is contained in:
+14
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user