rename gitea to forge for cli and add gitea options as aliases

This commit is contained in:
crapStone 2024-05-19 23:53:50 +02:00
parent 9ce901bfa0
commit 5cac5e105c
No known key found for this signature in database
GPG key ID: 22D4BF0CF7CC29C8
6 changed files with 73 additions and 44 deletions

View file

@ -13,7 +13,7 @@ import (
)
func TestHandlerPerformance(t *testing.T) {
cfg := config.GiteaConfig{
cfg := config.ForgeConfig{
Root: "https://codeberg.org",
Token: "",
LFSEnabled: false,

View file

@ -77,7 +77,7 @@ func Serve(ctx *cli.Context) error {
// clientResponseCache stores responses from the Gitea server
clientResponseCache := cache.NewInMemoryCache()
giteaClient, err := gitea.NewClient(cfg.Gitea, clientResponseCache)
giteaClient, err := gitea.NewClient(cfg.Forge, clientResponseCache)
if err != nil {
return fmt.Errorf("could not create new gitea client: %v", err)
}