52
README.md
Normal file
52
README.md
Normal 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
|
||||
Reference in New Issue
Block a user