Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/server/cmd/neko/main.go

19 lines
309 B
Go
Raw Normal View History

2020-01-13 21:05:38 +13:00
package main
import (
"fmt"
2020-01-19 12:30:09 +13:00
"github.com/rs/zerolog/log"
2021-10-06 09:38:24 +13:00
"m1k1o/neko"
"m1k1o/neko/cmd"
"m1k1o/neko/internal/utils"
2020-01-13 21:05:38 +13:00
)
func main() {
2020-01-19 12:30:09 +13:00
fmt.Print(utils.Colorf(neko.Header, "server", neko.Service.Version))
2020-01-13 21:05:38 +13:00
if err := cmd.Execute(); err != nil {
2020-01-19 12:30:09 +13:00
log.Panic().Err(err).Msg("failed to execute command")
2020-01-13 21:05:38 +13:00
}
}