package main import ( "context" "log" "os/signal" "syscall" "time" "gitea.loveuer.com/loveuer/cluster/internal/cmd" ) func init() { time.LoadLocation("Asia/Shanghai") } func main() { ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) defer cancel() if err := cmd.Run(ctx); err != nil { log.Fatalf("[F] Failed to run command: %v", err) } }