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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user