From de3352fe180e286b9db76092a3908491bd55c3d1 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Tue, 23 Aug 2016 22:46:57 +0200 Subject: [PATCH] Set a proper version number --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4bfc2b0..27a6bc9 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "os" "github.com/Sirupsen/logrus" @@ -8,14 +9,14 @@ import ( "github.com/urfave/cli" ) -var version string // build number set at compile-time +var build = "0" // build number set at compile-time func main() { app := cli.NewApp() app.Name = "s3 sync plugin" app.Usage = "s3 sync plugin" app.Action = run - app.Version = version + app.Version = fmt.Sprintf("1.0.%s", build) app.Flags = []cli.Flag{ cli.StringFlag{ Name: "access-key",