-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.go
58 lines (56 loc) · 1.41 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package main
import "github.com/murphysecurity/fix-tools/fix"
func main() {
// todo
println(666)
//params := fix.FixParams{
// ShowOnly: true,
// CompList: []fix.Comp{{
// CompName: "org.springframework.boot:spring-boot-configuration-processor",
// CompVersion: "2.0.5.RELEASE",
// }},
// PackageManager: "maven",
// RepoType: "local",
// Dir: "E:\\project\\java_project\\test\\java",
//}
params := fix.FixParams{
ShowOnly: false,
TimeOut: 60,
RepoType: "github",
CompList: []fix.Comp{{
CompName: "com.fasterxml.jackson.core:jackson-databind",
CompVersion: "2.8.7",
MinFixVersion: "2.9.10.8",
}},
PackageManager: "maven",
Dir: "",
ProxyUrl: "http://127.0.0.1:7890",
GitlabUrl: "gitee.com",
CommitHash: "244babb436c3896b253495f6012d4ae36c9ed331",
TargetOwner: "645775992",
Owner: "",
Repo: "light-4j",
UserName: "645775992",
Password: "",
UserEmail: "645775992@qq.com",
Token: "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",
Title: "提交pr title",
Body: "提交pr body",
}
params.Fix()
//if err != nil {
// println(err.Error())
//}
//for _, p := range preview {
// print(p.Line)
// print("--------")
// println(p.Path)
// for _, content := range p.Content {
// print(content.Line)
// print(" ")
// println(content.Text)
//
// }
//
//}
}