pcgamedb/main.go
2024-09-24 18:17:11 +08:00

18 lines
281 B
Go

package main
import (
"pcgamedb/cmd"
"pcgamedb/log"
"strings"
"go.uber.org/zap"
)
func main() {
if err := cmd.RootCmd.Execute(); err != nil {
if !strings.Contains(err.Error(), "unknown command") {
log.Logger.Error("Failed to execute command", zap.Error(err))
}
}
}