diff options
Diffstat (limited to 'cmd/nova/nova.go')
| -rw-r--r-- | cmd/nova/nova.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cmd/nova/nova.go b/cmd/nova/nova.go new file mode 100644 index 0000000..cde4e46 --- /dev/null +++ b/cmd/nova/nova.go @@ -0,0 +1,32 @@ +package main + +import ( + "os" + "os/signal" + "syscall" + + allinone "github.com/discordnova/nova/internal/pkg/all-in-one" +) + +func main() { + allInOne, err := allinone.NewAllInOne() + if err != nil { + panic(err) + } + err = allInOne.Start() + if err != nil { + panic(err) + } + // Wait for a SIGINT + c := make(chan os.Signal, 1) + signal.Notify(c, + syscall.SIGHUP, + syscall.SIGINT, + syscall.SIGTERM, + syscall.SIGQUIT) + <-c + + allInOne.Stop() + + println("Arret de nova all in one") +} |
