File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ifeq (run,$(firstword $(MAKECMDGOALS)))
6
6
endif
7
7
8
8
VERSION := $(shell git tag | grep ^v | sort -V | tail -n 1)
9
- LDFLAGS = -ldflags "-X main.Version =${VERSION}"
9
+ LDFLAGS = -ldflags "-X main.version =${VERSION}"
10
10
11
11
.PHONY : help
12
12
Original file line number Diff line number Diff line change @@ -35,15 +35,20 @@ var testMode = false
35
35
36
36
var tempDir string = "./" + configDir + "/tmp"
37
37
38
- var Version string = ""
38
+ var (
39
+ version = "dev"
40
+ commit = "none"
41
+ date = "unknown"
42
+ builtBy = "unknown"
43
+ )
39
44
40
45
func main () {
41
46
42
47
// output version info
43
48
if len (os .Args ) > 1 {
44
49
arg := os .Args [1 ]
45
50
if arg == "version" {
46
- fmt .Println ("Magento CLI by Blue Acorn iCi x Infosys " + Version )
51
+ fmt .Println ("Magento CLI by Blue Acorn iCi x Infosys " + version )
47
52
os .Exit (0 )
48
53
}
49
54
}
You can’t perform that action at this time.
0 commit comments