Shovelling coal into the server...
This commit is contained in:
11
giteaDo
11
giteaDo
@@ -18,6 +18,8 @@ cat <<EOF
|
|||||||
|
|
||||||
-c,--create Create a reposiroty
|
-c,--create Create a reposiroty
|
||||||
|
|
||||||
|
-i,--instant Create a reposiroty in current folder with random commit message
|
||||||
|
|
||||||
-d,--delete Delete a reposority
|
-d,--delete Delete a reposority
|
||||||
|
|
||||||
-l,--list List repositories
|
-l,--list List repositories
|
||||||
@@ -81,6 +83,15 @@ else
|
|||||||
read -p "Enter new repo's description: " description
|
read -p "Enter new repo's description: " description
|
||||||
createRepo "$name" "$description" | jq
|
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)
|
-d|--delete)
|
||||||
NAME="$(giteaDo -l | rofi -theme-str 'window {width: 400px; height: 200px;}' -dmenu -i -p 'Repo to delete?')"
|
NAME="$(giteaDo -l | rofi -theme-str 'window {width: 400px; height: 200px;}' -dmenu -i -p 'Repo to delete?')"
|
||||||
deleteRepo "$NAME"
|
deleteRepo "$NAME"
|
||||||
|
|||||||
Reference in New Issue
Block a user