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
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,16 @@ import (
4
4
"awesome-ci/service"
5
5
"flag"
6
6
"fmt"
7
+
"log"
7
8
"os"
8
9
)
9
10
10
11
var (
11
12
cienvstring
12
13
createReleaseCreateReleaseSet
13
14
getBuildInfosgetBuildInfosSet
15
+
parseJsonparseJsonYamlSet
16
+
parseYamlparseJsonYamlSet
14
17
versionstring
15
18
versionFlagbool
16
19
//debug bool
@@ -32,6 +35,12 @@ type getBuildInfosSet struct {
32
35
formatstring
33
36
}
34
37
38
+
typeparseJsonYamlSetstruct {
39
+
fs*flag.FlagSet
40
+
filestring
41
+
valuestring
42
+
}
43
+
35
44
funcinit() {
36
45
flag.StringVar(&cienv, "cienv", "Github", "set your CI Environment for Special Featueres!\nAvalible: Jenkins, Github, Gitlab, Custom\nDefault: Github")
37
46
flag.BoolVar(&versionFlag, "version", false, "print version by calling it")
@@ -50,6 +59,16 @@ func init() {
50
59
getBuildInfos.fs.StringVar(&getBuildInfos.version, "version", "", "override version to Update")
51
60
getBuildInfos.fs.StringVar(&getBuildInfos.patchLevel, "patchLevel", "", "predefine version to Update")
52
61
getBuildInfos.fs.StringVar(&getBuildInfos.format, "format", "pr,version", "define output by get")
0 commit comments