0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-22 10:10:39 +00:00

Set a proper version number

This commit is contained in:
Thomas Boerger 2016-08-23 21:44:50 +02:00
parent 1d23c74f5a
commit 8121b9c33c
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6

View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"fmt"
"os" "os"
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
@ -8,14 +9,14 @@ import (
"github.com/urfave/cli" "github.com/urfave/cli"
) )
var version string // build number set at compile-time var build = "0" // build number set at compile-time
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "docker plugin" app.Name = "docker plugin"
app.Usage = "docker plugin" app.Usage = "docker plugin"
app.Action = run app.Action = run
app.Version = version app.Version = fmt.Sprintf("1.0.%s", build)
app.Flags = []cli.Flag{ app.Flags = []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "dry-run", Name: "dry-run",