mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-10 22:17:44 +00:00
18 lines
268 B
Go
18 lines
268 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"os"
|
||
|
"os/signal"
|
||
|
|
||
|
"github.com/christianselig/apollo-backend/internal/cmd"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
|
||
|
defer cancel()
|
||
|
|
||
|
ret := cmd.Execute(ctx)
|
||
|
os.Exit(ret)
|
||
|
}
|