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:
Patrick O'brien 2016-03-21 01:57:25 +10:00
parent e69573f68e
commit af1201e86e
3 changed files with 127 additions and 17 deletions

View file

@ -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)