feat: add local Gitea CLI helper

This commit is contained in:
Gemma
2026-05-21 09:31:32 +02:00
commit 083b2209ea
4 changed files with 267 additions and 0 deletions

32
README.md Normal file
View File

@@ -0,0 +1,32 @@
# gitea-cli
Tiny stdlib-only Python helper for common operations against the local self-hosted Gitea instance.
Defaults:
- `GITEA_URL=http://192.168.33.22:3300`
- `GITEA_USER=gemma`
Credentials are read at runtime from:
1. `GITEA_TOKEN`
2. `GITEA_PASSWORD`
3. `/root/PASSWORD.md` line matching `gitea <password>`
## Install
```bash
sudo install -m 0755 gitea-cli /usr/local/bin/gitea-cli
sudo ln -sf /usr/local/bin/gitea-cli /usr/local/bin/gitea
```
## Usage
```bash
gitea version
gitea list
gitea list --json
gitea get arcana-fx
gitea create my-repo --description "description" --private
gitea create my-repo --dry-run
```