19 lines
320 B
Go
19 lines
320 B
Go
|
package main
|
||
|
|
||
|
var (
|
||
|
// version of notify-to-slack being run
|
||
|
version = "dev"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
showVersion := flag.Bool("version", false, "Display the version of minitor and exit")
|
||
|
flag.Parse()
|
||
|
|
||
|
// Print version if flag is provided
|
||
|
if *showVersion {
|
||
|
fmt.Println("notify-to-slack version:", version)
|
||
|
|
||
|
return
|
||
|
}
|
||
|
}
|