webhookd/version.go

23 lines
397 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)
Copyright (C) 2018 Nunux, Org.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Nicolas Carlier.`, Version)
}