mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-24 12:47:43 +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)
|
||
|
}
|