18 lines
281 B
Go
18 lines
281 B
Go
|
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))
|
||
|
}
|
||
|
}
|
||
|
}
|