matrix-pretix/main.go

25 lines
407 B
Go
Raw Normal View History

2022-07-22 19:52:41 +02:00
package main
import (
"log"
2022-07-22 19:52:41 +02:00
"git.luj0ga.de/franconian/matrix-pretix/internal/config"
2022-07-22 19:52:41 +02:00
"git.luj0ga.de/franconian/matrix-pretix/internal/matrix"
)
func main() {
if len(os.Args) != 2 {
log.Fatal("missing config file path")
2022-07-22 19:52:41 +02:00
}
config, err := config.ParseFromFile(os.Args[1])
2022-07-22 19:52:41 +02:00
if err != nil {
log.Fatal(err)
2022-07-22 19:52:41 +02:00
}
client, err := matrix.NewClient(&config.Matrix)
2022-07-22 19:52:41 +02:00
if err != nil {
log.Fatal(err)
2022-07-22 19:52:41 +02:00
}
}