notify-to-slack/main.go

19 lines
320 B
Go
Raw Normal View History

2021-12-14 17:18:34 +00:00
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
}
}