2020-02-14 21:46:02 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-05-07 03:09:31 +02:00
|
|
|
"os"
|
|
|
|
|
2020-02-17 21:50:02 +01:00
|
|
|
"gitea.com/jolheiser/sip/cmd"
|
2020-09-17 18:25:09 +02:00
|
|
|
"gitea.com/jolheiser/sip/config"
|
2020-05-07 03:09:31 +02:00
|
|
|
|
2020-02-27 03:53:11 +01:00
|
|
|
"go.jolheiser.com/beaver"
|
2020-02-14 21:46:02 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
var Version = "develop"
|
|
|
|
|
|
|
|
func main() {
|
2020-09-17 18:25:09 +02:00
|
|
|
app := cmd.NewApp(Version)
|
2020-02-18 06:27:52 +01:00
|
|
|
|
2020-09-17 18:25:09 +02:00
|
|
|
if err := config.Init(); err != nil {
|
|
|
|
beaver.Fatal(err)
|
2020-02-14 21:46:02 +01:00
|
|
|
}
|
2020-09-17 18:25:09 +02:00
|
|
|
|
2020-02-14 21:46:02 +01:00
|
|
|
err := app.Run(os.Args)
|
|
|
|
if err != nil {
|
2020-09-17 18:25:09 +02:00
|
|
|
beaver.Fatal(err)
|
2020-02-14 21:46:02 +01:00
|
|
|
}
|
|
|
|
}
|