2024-09-24 06:17:11 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
|
2024-11-20 06:09:04 -05:00
|
|
|
"pcgamedb/cmd"
|
|
|
|
"pcgamedb/log"
|
2024-11-15 02:02:45 -05:00
|
|
|
|
2024-09-24 06:17:11 -04:00
|
|
|
"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))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|