initial import
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2025-09-11 17:30:21 +09:00
commit 82b61a27b2
7 changed files with 370 additions and 0 deletions

52
README.md Normal file
View File

@@ -0,0 +1,52 @@
# teatea
A lightweight CLI client for Gitea API.
## Installation
```bash
go get github.com/ssig33/teatea@latest
```
## Configuration
Set the following environment variables:
- `GITEA_TOKEN`: Your Gitea API token
- `GITEA_HOST`: Your Gitea instance URL (e.g., `https://gitea.example.com`)
## Usage
### Create a repository
Create a repository with the current directory name:
```bash
teatea create
```
Create a repository with a specific name:
```bash
teatea create myrepo
```
Create a private repository:
```bash
teatea create -p
teatea create -p myrepo
```
### Git remote management
The tool automatically manages git remotes:
- If no `origin` exists, it sets the created repository as `origin`
- If `origin` exists but no `gitea` remote exists, it adds a `gitea` remote
- If both exist, no remote changes are made
## Requirements
- Must be run inside a git repository
- Environment variables `GITEA_TOKEN` and `GITEA_HOST` must be set
## License
WTFPL