matrix-pretix/main.go

27 lines
425 B
Go
Raw Normal View History

2022-07-22 19:52:41 +02:00
package main
import (
"log"
2022-07-23 00:36:28 +02:00
"os"
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
}
2022-07-23 00:36:28 +02:00
_ = client
2022-07-22 19:52:41 +02:00
}