1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2025-01-03 01:22:21 +02:00
crud_generator/cmd/crud_generator/main.go
2023-11-29 11:21:05 +03:00

37 lines
777 B
Go

package main
import (
"github.com/ManyakRus/crud_generator/internal/config"
"github.com/ManyakRus/crud_generator/internal/constants"
"github.com/ManyakRus/crud_generator/internal/load_configs"
"github.com/ManyakRus/crud_generator/internal/logic"
"github.com/ManyakRus/starter/log"
"github.com/ManyakRus/starter/postgres_gorm"
)
func main() {
StartApp()
}
func StartApp() {
//ConfigMain.LoadENV_or_SettingsTXT()
config.LoadSettingsTxt()
config.FillSettings()
config.FillFlags()
load_configs.LoadConfigsAll()
postgres_gorm.Start(constants.SERVICE_NAME)
postgres_gorm.GetConnection().Logger.LogMode(1)
//folders.CreateAllFolders()
err := logic.StartFillAll()
if err != nil {
log.Error("StartFillAll() error: ", err)
println(constants.TEXT_HELP)
}
}