1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-15 04:58:36 +00:00

version: move version into the app main

ssssss-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2023-03-25 22:49:08 -04:00
parent 3cdf99b6d4
commit 95fc9b62ed
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
3 changed files with 3 additions and 13 deletions

View file

@ -5,14 +5,15 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/urfave/cli" "github.com/urfave/cli"
"github.com/vbatts/tar-split/version"
) )
var Version = "v0.11.3"
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "tar-split" app.Name = "tar-split"
app.Usage = "tar assembly and disassembly utility" app.Usage = "tar assembly and disassembly utility"
app.Version = version.VERSION app.Version = Version
app.Author = "Vincent Batts" app.Author = "Vincent Batts"
app.Email = "vbatts@hashbangbash.com" app.Email = "vbatts@hashbangbash.com"
app.Action = cli.ShowAppHelp app.Action = cli.ShowAppHelp

View file

@ -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

View file

@ -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"