469024c1e22b42bdae4b8f6f1b1ec50f5421ff84
giteaDo
Perform basic reposirory related operations on a gitea instance
In order to use it for your own account you first have to create one over any gitea instance and create an access token according to the documentation here
You should also download and configure pass for a more secure token management although if you want to, you can just paste the plaintext token in the code
For convenience if you choose the right option you can watch this excellent tutorial by Luke Smith
Installation
git clone https://git.konsthol.eu/konsthol/giteaDo
cd giteaDo
sudo cp giteaDo /usr/bin/
(Or cp giteaDo anywhere in your $PATH)
Usage
giteaDo [-h|-c|-d|-l]
you can have many options in one run such as giteaDo -h -l -d
To get a help menu
giteaDo -h|--help
To create a new repository
giteaDo -c|--create
To delete existing repository
giteaDo -d|--delete
To list all owned repositories
giteaDo -l|--list
Dependencies
- curl
- awk
- rofi (Optional, copy paste the read lines to have to type the name)
- pass (Optional, paste plaintext token if you don't care about security)
- sed
- jq
- grep
- cat
Credits go to
For being an awesome service and because this script uses their api to function
Description
Languages
Shell
100%