mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-23 06:16:52 +01:00
More like a library (#279)
This commit is contained in:
1 parent
6238f1550b
commit
68e3e84fdc
19 files changed
+608
-153
No files matched your search
+6
-1
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user