-
Notifications
You must be signed in to change notification settings - Fork 24
/
main.go
33 lines (26 loc) · 693 Bytes
/
main.go
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
/*
* Authors:
* Simon Gerber <[email protected]>
*
* License:
* Copyright (c) 2019, VSHN AG, <[email protected]>
* Licensed under "BSD 3-Clause". See LICENSE file.
*/
package main
import (
"fmt"
"os"
"github.com/alecthomas/kingpin/v2"
)
// Version information
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:]))
}