You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+15-10Lines changed: 15 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@ var (
11
11
cienvstring
12
12
createReleaseCreateReleaseSet
13
13
getBuildInfosgetBuildInfosSet
14
-
debugbool
14
+
versionstring
15
+
versionFlagbool
16
+
//debug bool
15
17
)
16
18
17
19
typeCreateReleaseSetstruct {
@@ -32,6 +34,7 @@ type getBuildInfosSet struct {
32
34
33
35
funcinit() {
34
36
flag.StringVar(&cienv, "cienv", "Github", "set your CI Environment for Special Featueres!\nAvalible: Jenkins, Github, Gitlab, Custom\nDefault: Github")
37
+
flag.BoolVar(&versionFlag, "version", false, "print version by calling it")
35
38
// flag.BoolVar(&debug, "debug", false, "enable debug level by calling it")
0 commit comments