pcgamedb/main.go

18 lines
281 B
Go
Raw Normal View History

2024-09-24 06:17:11 -04:00
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))
}
}
}