$(init 0)
This commit is contained in:
10
giteaDo
10
giteaDo
@@ -4,6 +4,10 @@ GITEA_URL="http://git.konsthol.eu:3333"
|
|||||||
|
|
||||||
USERNAME="konsthol"
|
USERNAME="konsthol"
|
||||||
|
|
||||||
|
#MENU='rofi -theme-str 'window {width: 400px; height: 200px;}' -dmenu -i -p repoToDelete'
|
||||||
|
MENU="rofi -dmenu -i -p repoToDelete"
|
||||||
|
[[ "$OSTYPE" != "linux-gnu" ]] && MENU="fzf -i --prompt=repoToDelete"
|
||||||
|
|
||||||
NAME="${0##*/}"
|
NAME="${0##*/}"
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
@@ -85,7 +89,7 @@ else
|
|||||||
;;
|
;;
|
||||||
-i|--instant)
|
-i|--instant)
|
||||||
read -p "Enter new repo's description: " description
|
read -p "Enter new repo's description: " description
|
||||||
createRepo "$(basename $PWD)" "$description"
|
createRepo "$(basename $PWD)" "$description" | jq
|
||||||
git init
|
git init
|
||||||
git add .
|
git add .
|
||||||
git commit -m "$(curl -s http://whatthecommit.com/index.txt)"
|
git commit -m "$(curl -s http://whatthecommit.com/index.txt)"
|
||||||
@@ -93,8 +97,8 @@ else
|
|||||||
git push -u origin master
|
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 | $MENU)"
|
||||||
deleteRepo "$NAME"
|
[[ -n $NAME ]] && deleteRepo "$NAME"
|
||||||
;;
|
;;
|
||||||
-l|--list)
|
-l|--list)
|
||||||
listRepos
|
listRepos
|
||||||
|
|||||||
Reference in New Issue
Block a user