forked from vshn/signalilo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
32 lines (25 loc) · 668 Bytes
/
main.go
File metadata and controls
32 lines (25 loc) · 668 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
/*
* Authors:
* Simon Gerber <simon.gerber@vshn.ch>
*
* License:
* Copyright (c) 2019, VSHN AG, <info@vshn.ch>
* Licensed under "BSD 3-Clause". See LICENSE file.
*/
package main
import (
"fmt"
"os"
"gopkg.in/alecthomas/kingpin.v2"
)
var (
Version = "undefined"
BuildDate = "Now"
)
func main() {
app := kingpin.New("signalilo", "Signalilo takes in Alertmanager alerts through a webhook, translates them into Icinga2 services and posts them to Icinga using the Icinga API").Version(Version)
configureServeCommand(app)
fmt.Printf("Signalilo %v\n", Version)
fmt.Printf("Build time: %v\n\n", BuildDate)
kingpin.MustParse(app.Parse(os.Args[1:]))
}