game-crawler/main.go
nite07 304517e241
Some checks failed
release / goreleaser (push) Failing after 2m23s
docker / prepare-and-build (push) Failing after 2m55s
trans to private
2024-11-20 19:09:04 +08:00

19 lines
282 B
Go

package main
import (
"strings"
"pcgamedb/cmd"
"pcgamedb/log"
"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))
}
}
}