kjuulh
46cc160764
updated roadmap updated roadmap Add a basic readme (#15) Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: kjuulh/kraken#15 fix readme Add readme with stuff more roadmap items update formatting formatting 2 more setup with semantic with semantic 2 revert add releaserc with releaser with kraken Update roadmap rename rename feature/move-command (#18) Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: #18 fix/require-two-pushes (#20) Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: #20
30 lines
483 B
Go
30 lines
483 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"git.front.kjuulh.io/kjuulh/octopush/cmd/server/commands"
|
|
"git.front.kjuulh.io/kjuulh/octopush/internal/logger"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
func main() {
|
|
logger, err := logger.New()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
_ = logger.Sync()
|
|
|
|
zap.ReplaceGlobals(logger)
|
|
|
|
Execute(logger)
|
|
}
|
|
|
|
func Execute(logger *zap.Logger) {
|
|
err := commands.CreateServerCmd(logger).Execute()
|
|
if err != nil {
|
|
logger.Error("execution failed", zap.Error(err))
|
|
os.Exit(1)
|
|
}
|
|
}
|