Moved config init to main func & add config_test
* Split cfg object into testCfg and cfg * Added tests for loading toml config from file
This commit is contained in:
parent
e69573f68e
commit
af1201e86e
3 changed files with 127 additions and 17 deletions
3
main.go
3
main.go
|
@ -13,6 +13,9 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
// Load the config.toml file
|
||||
cmds.LoadConfigFile("config.toml")
|
||||
|
||||
// Execute SQLBoiler
|
||||
if err := cmds.SQLBoiler.Execute(); err != nil {
|
||||
fmt.Printf("Failed to execute SQLBoiler: %s", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue