1

Initial commit

This commit is contained in:
2025-06-13 04:15:35 +04:00
commit 1c350b8dfb
14 changed files with 500 additions and 0 deletions

20
lib/settings/settings.go Normal file
View File

@@ -0,0 +1,20 @@
package settings
import (
"github.com/caarlos0/env/v11"
)
type Settings struct {
APIKey string `env:"RELEASER_API_KEY,required"`
Owner string `env:"RELEASER_OWNER,required"`
Repo string `env:"RELEASER_REPO,required"`
Tag string `env:"RELEASER_TAG,required"`
Draft bool `env:"RELEASER_DRAFT,required"`
Title string `env:"RELEASER_TITLE,required"`
Description string `env:"RELEASER_DESCRIPTION,required"`
Storage string `env:"RELEASER_STORAGE,required"`
}
func (s *Settings) Populate() error {
return env.Parse(s)
}