if you're not using et, fuck off
This commit is contained in:
65
README.md
Normal file
65
README.md
Normal file
@@ -0,0 +1,65 @@
|
||||
# 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](https://docs.gitea.io/en-us/api-usage/)
|
||||
|
||||
You should also download and configure [pass](https://www.passwordstore.org/) 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](https://www.youtube.com/watch?v=sVkURNfxPd4) excellent tutorial by [Luke Smith](https://www.youtube.com/c/LukeSmithxyz)
|
||||
|
||||
## 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
|
||||
|
||||
```sh
|
||||
giteaDo -h|--help
|
||||
```
|
||||
|
||||
To create a new repository
|
||||
|
||||
```sh
|
||||
giteaDo -c|--create
|
||||
```
|
||||
|
||||
To delete existing repository
|
||||
|
||||
```sh
|
||||
giteaDo -d|--delete
|
||||
```
|
||||
|
||||
To list all owned repositories
|
||||
|
||||
```sh
|
||||
giteaDo -l|--list
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
* curl
|
||||
* awk
|
||||
* pass
|
||||
* sed
|
||||
* jq
|
||||
* grep
|
||||
* cat
|
||||
|
||||
## Credits go to
|
||||
|
||||
* [Gitea](https://gitea.io/en-us/)
|
||||
|
||||
For being an awesome service and because this script uses their api to function
|
||||
|
||||
Reference in New Issue
Block a user