webhookd/version.go

22 lines
373 B
Go
Raw Normal View History

package main
import (
"flag"
"fmt"
)
// Version of the app
var Version = "snapshot"
var (
version = flag.Bool("version", false, "Print version")
)
func printVersion() {
fmt.Printf(`webhookd (%s)
2020-02-13 10:15:57 +00:00
Copyright (C) 2020 Nicolas Carlier
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.`, Version)
}