uauth/main.go
2024-10-29 16:17:07 +08:00

19 lines
359 B
Go

package main
import (
"context"
"github.com/loveuer/nf/nft/log"
"os/signal"
"syscall"
"uauth/internal/cmd"
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
defer cancel()
if err := cmd.Command.ExecuteContext(ctx); err != nil {
log.Error(err.Error())
}
}