More like a library (#279)

This commit is contained in:
Nathan Brown authored and GitHub committed 2020-09-18 09:20:09 -05:00
1 parent 6238f1550b
commit 68e3e84fdc
19 files changed
+608 -153

No files matched your search

+6 -1
View File
@@ -49,7 +49,7 @@ func main() {
l := logrus.New()
l.Out = os.Stdout
err = nebula.Main(config, *configTest, true, Build, l, nil, nil)
c, err := nebula.Main(config, *configTest, Build, l, nil)
switch v := err.(type) {
case nebula.ContextualError:
@@ -60,5 +60,10 @@ func main() {
os.Exit(1)
}
if !*configTest {
c.Start()
c.ShutdownBlock()
}
os.Exit(0)
}