Shovelling coal into the server...

This commit is contained in:
2022-04-30 18:30:21 +03:00
parent 469024c1e2
commit e49a359615

11
giteaDo
View File

@@ -17,6 +17,8 @@ cat <<EOF
-h,--help Display this message
-c,--create Create a reposiroty
-i,--instant Create a reposiroty in current folder with random commit message
-d,--delete Delete a reposority
@@ -81,6 +83,15 @@ else
read -p "Enter new repo's description: " description
createRepo "$name" "$description" | jq
;;
-i|--instant)
read -p "Enter new repo's description: " description
createRepo "$(basename $PWD)" "$description"
git init
git add .
git commit -m "$(curl -s http://whatthecommit.com/index.txt)"
git remote add origin https://git.konsthol.eu/konsthol/$(basename $PWD)
git push -u origin master
;;
-d|--delete)
NAME="$(giteaDo -l | rofi -theme-str 'window {width: 400px; height: 200px;}' -dmenu -i -p 'Repo to delete?')"
deleteRepo "$NAME"