Shovelling coal into the server...
This commit is contained in:
11
giteaDo
11
giteaDo
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user