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)) } } }