23 lines
420 B
Go
23 lines
420 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
"go.balki.me/tss/app"
|
|
"go.balki.me/tss/log"
|
|
"go.balki.me/tss/schedule"
|
|
)
|
|
|
|
func main() {
|
|
logger := log.GetZapLogger()
|
|
schedule.SetLogger(logger.WithName("schedule"))
|
|
app.SetLogger(logger.WithName("app"))
|
|
|
|
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)
|
|
}
|
|
}
|