2024-04-04 01:12:42 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.gnous.eu/ada/git-mirror/internal/config"
|
2024-04-04 20:53:35 +02:00
|
|
|
"git.gnous.eu/ada/git-mirror/internal/git"
|
2024-04-04 01:12:42 +02:00
|
|
|
"github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
initConfig, err := config.LoadToml("config.example.toml")
|
|
|
|
if err != nil {
|
|
|
|
logrus.Fatal(err)
|
|
|
|
}
|
|
|
|
|
2024-04-04 18:02:04 +02:00
|
|
|
err = initConfig.Verify()
|
|
|
|
if err != nil {
|
|
|
|
logrus.Fatal(err)
|
|
|
|
}
|
|
|
|
|
2024-04-04 01:12:42 +02:00
|
|
|
initConfig.Log.Init()
|
|
|
|
logrus.Info("Config loaded")
|
|
|
|
logrus.Debug("Config: ", initConfig)
|
2024-04-04 18:02:04 +02:00
|
|
|
|
2024-04-04 20:53:35 +02:00
|
|
|
git.StartClone(initConfig.RepoList)
|
2024-04-04 01:12:42 +02:00
|
|
|
}
|