tss/main.go
2022-06-17 17:51:16 -04:00

21 lines
342 B
Go

package main
import (
"flag"
"go.balki.me/tss/app"
"go.balki.me/tss/log"
"go.balki.me/tss/schedule"
)
func main() {
schedule.SetLogger(log.GetZapLogger())
var configPath string
flag.StringVar(&configPath, "config", "./tss.yml", "path to tss.yml config")
flag.Parse()
if err := app.Run(configPath); err != nil {
panic(err)
}
}