spiegel/main.go
Ada cece0ed3bb
Some checks failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/lint Pipeline failed
Clone repository on start + Update repository
2024-04-04 20:53:35 +02:00

25 lines
460 B
Go

package main
import (
"git.gnous.eu/ada/git-mirror/internal/config"
"git.gnous.eu/ada/git-mirror/internal/git"
"github.com/sirupsen/logrus"
)
func main() {
initConfig, err := config.LoadToml("config.example.toml")
if err != nil {
logrus.Fatal(err)
}
err = initConfig.Verify()
if err != nil {
logrus.Fatal(err)
}
initConfig.Log.Init()
logrus.Info("Config loaded")
logrus.Debug("Config: ", initConfig)
git.StartClone(initConfig.RepoList)
}