zyedidia / eget

Easily install prebuilt binaries from GitHub.
MIT License
866 stars 39 forks source link

gitea support #99

Open abs3ntdev opened 5 months ago

abs3ntdev commented 5 months ago

this adds gitea support and a very rough framework for adding other host types. it adds two config values for host (git.example.com, gitea.whatever.foo) and host_type(github, gitea).

I tested it very briefly just by egetting some binaries from my personal gitea deployment so could use some additional testing.

example toml config:

host = "git.example.com"
host_type = "gitea"

example command line arguments:

eget --host "git.example.com" --host-type gitea user/repo

closes #61

tarasglek commented 1 day ago

This would solve #110 for me. It's too bad that it prepends api. to host= when hosttype=github

But even in current form, that's something that works for me