-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.go
More file actions
36 lines (30 loc) · 742 Bytes
/
main.go
File metadata and controls
36 lines (30 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
import (
"time"
log "github.com/sirupsen/logrus"
)
const (
Version = "1.0.0"
minDelayTime = 30 * time.Second
)
var usage = `freshpow: trail and lift status alerts
Usage:
freshpow [options] <resort>
freshpow --list
freshpow --help
freshpow --version
Options:
-l, --list List supported resorts.
-d, --delay=<delay> Delay between requests [default: 5m].
--debug Display debugging messages.
-h, --help Show this screen.
--version Show version.
`
// TK: add weather & conditions
func main() {
cfg, err := getConfig()
if err != nil {
log.Fatal(err)
}
trackChanges(cfg)
}