Moving away from passing around *ast.Tables.

Config in the config directory will need to be merged into the main
config, which is difficult to do using the *ast.Tables. Get the config
into structs as soon as possible and then merge the structs.
This commit is contained in:
gotyaoi
2015-10-16 21:47:13 -07:00
committed by Ellison Marks
parent 553208a960
commit 03d79996de
3 changed files with 293 additions and 173 deletions

View File

@@ -90,7 +90,7 @@ func main() {
ag.Debug = true
}
outputs, err := ag.LoadOutputs(outputFilters)
outputs, err := ag.LoadOutputs(outputFilters, config)
if err != nil {
log.Fatal(err)
}
@@ -99,7 +99,7 @@ func main() {
os.Exit(1)
}
plugins, err := ag.LoadPlugins(pluginFilters)
plugins, err := ag.LoadPlugins(pluginFilters, config)
if err != nil {
log.Fatal(err)
}