Require plugin declaration in config to use any plugin

This also makes it so `-test` without a config file tests all available
plugins with the default configuration. This mode is very useful for
getting some initial data out of tivan.
This commit is contained in:
Evan Phoenix
2015-05-18 14:10:12 -07:00
parent f1e1204374
commit b2c5d95737
3 changed files with 54 additions and 10 deletions

View File

@@ -56,7 +56,12 @@ func main() {
}
if *fTest {
err = ag.Test()
if *fConfig != "" {
err = ag.Test()
} else {
err = ag.TestAllPlugins()
}
if err != nil {
log.Fatal(err)
}