aboutsummaryrefslogtreecommitdiff
path: root/.scripts/boil
diff options
context:
space:
mode:
authorMarvin Borner2020-09-21 16:07:38 +0200
committerMarvin Borner2020-09-21 16:07:38 +0200
commit54e232bf8b0668edc601763c4ed60be8fffc40a3 (patch)
tree36b2d54945228337debac370d39ba8bb4ed3b48e /.scripts/boil
parent7d4e199df2b57b4c7f7cbdacc7792d71bb56a538 (diff)
Laptop sync
Diffstat (limited to '.scripts/boil')
-rwxr-xr-x.scripts/boil21
1 files changed, 13 insertions, 8 deletions
diff --git a/.scripts/boil b/.scripts/boil
index ac1ab55..0805147 100755
--- a/.scripts/boil
+++ b/.scripts/boil
@@ -5,18 +5,23 @@ name="$2"
boilerplates="$HOME/.boilerplates"
if [ "${mode}" = "" ] || [ "${name}" = "" ]; then
- echo "Not enough parameters"
- exit 1
+ echo "Not enough parameters"
+ exit 1
fi
if [ "${mode}" = "clj" ]; then
- lein new app "$name"
- cp "$boilerplates/$mode/run" "$name"
- rm -rf "$name/CHANGELOG.md" "$name/LICENSE" "$name/README.md" "$name/doc/"
+ lein new app "$name"
+ cp "$boilerplates/$mode/run" "$name"
+ rm -rf "$name/CHANGELOG.md" "$name/LICENSE" "$name/README.md" "$name/doc/"
elif [ "${mode}" = "md" ] || [ "${mode}" = "ms" ]; then
- cp "$boilerplates/txt/$mode.$mode" "$name.$mode"
+ cp "$boilerplates/txt/$mode.$mode" "$name.$mode"
elif [ "${mode}" = "run" ]; then
- cp "$boilerplates/txt/run" run
+ cp "$boilerplates/txt/run" run
+elif [ "${mode}" = "cs" ]; then
+ mkdir -p "$name"
+ cd "$name" || exit 1
+ dotnet new console
+ cp "$boilerplates/cs/run" run
else
- cp -r "$boilerplates/$mode" "$name" || echo "Something went wrong"
+ cp -r "$boilerplates/$mode" "$name" || echo "Something went wrong"
fi