summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-02-08 21:41:31 +0100
committerRuben Pollan <meskio@sindominio.net>2018-02-08 21:41:31 +0100
commita846cb2a424fd17d43e3edf885cca7d79820fa9f (patch)
tree8b22a77ee70f87516fb11712b3597e238a2c7943 /main.go
parentb32bcc834620a5c30ab4d7f7b8dde9ffdafd348f (diff)
[feat] use a config file to check when to produce the next notification
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.go b/main.go
index ce06c97..76343eb 100644
--- a/main.go
+++ b/main.go
@@ -11,12 +11,18 @@ const (
)
func main() {
- go notificate()
+ // TODO: do I need to bootstrap the provider?
+ conf, err := parseConfig()
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ go notificate(conf)
b, err := bitmask.Init()
if err != nil {
log.Fatal(err)
}
- run(b)
+ run(b, conf)
}