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
+28-17Lines changed: 28 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@ package main
3
3
import (
4
4
"awesome-ci/service"
5
5
"flag"
6
-
"io/ioutil"
7
-
"log"
6
+
"fmt"
8
7
"os"
9
8
)
10
9
11
10
var (
12
-
cienv*string
11
+
cienvstring
13
12
createReleaseCreateReleaseSet
14
13
getBuildInfosgetBuildInfosSet
14
+
debugbool
15
15
)
16
16
17
17
typeCreateReleaseSetstruct {
@@ -31,15 +31,16 @@ type getBuildInfosSet struct {
31
31
}
32
32
33
33
funcinit() {
34
-
cienv=flag.String("cienv", "Github", "set your CI Environment for Special Featueres!\nAvalible: Jenkins, Github, Gitlab, Custom\nDefault: Github")
34
+
flag.StringVar(&cienv, "cienv", "Github", "set your CI Environment for Special Featueres!\nAvalible: Jenkins, Github, Gitlab, Custom\nDefault: Github")
35
+
// flag.BoolVar(&debug, "debug", false, "enable debug level by calling it")
0 commit comments