pcgamedb/main.go

19 lines
318 B
Go
Raw Normal View History

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