From 95fc9b62ede56287668eebae37032ca0171930c0 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Sat, 25 Mar 2023 22:49:08 -0400 Subject: [PATCH] version: move version into the app main ssssss-off-by: Vincent Batts --- cmd/tar-split/main.go | 5 +++-- version/gen.go | 4 ---- version/version.go | 7 ------- 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 version/gen.go delete mode 100644 version/version.go diff --git a/cmd/tar-split/main.go b/cmd/tar-split/main.go index 37e0f64..a93af2c 100644 --- a/cmd/tar-split/main.go +++ b/cmd/tar-split/main.go @@ -5,14 +5,15 @@ import ( "github.com/sirupsen/logrus" "github.com/urfave/cli" - "github.com/vbatts/tar-split/version" ) +var Version = "v0.11.3" + func main() { app := cli.NewApp() app.Name = "tar-split" app.Usage = "tar assembly and disassembly utility" - app.Version = version.VERSION + app.Version = Version app.Author = "Vincent Batts" app.Email = "vbatts@hashbangbash.com" app.Action = cli.ShowAppHelp diff --git a/version/gen.go b/version/gen.go deleted file mode 100644 index d290d83..0000000 --- a/version/gen.go +++ /dev/null @@ -1,4 +0,0 @@ -package version - -// from `go get github.com/vbatts/go-get-version` -//go:generate go-get-version -package version -variable VERSION -output version.go diff --git a/version/version.go b/version/version.go deleted file mode 100644 index f317010..0000000 --- a/version/version.go +++ /dev/null @@ -1,7 +0,0 @@ -package version - -// AUTO-GENEREATED. DO NOT EDIT -// 2016-09-26 19:53:30.825879 -0400 EDT - -// VERSION is the generated version from /home/vbatts/src/vb/tar-split/version -var VERSION = "v0.10.1-4-gf280282"