Skip to content

Commit 5d3a844

Browse files
committed
优化banner输出
1 parent 6cba9b3 commit 5d3a844

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

cmd/commons/core/banner.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package core
22

33
import (
4-
"fmt"
4+
log "github.com/sirupsen/logrus"
55
)
66

77
const banner = `
@@ -15,9 +15,7 @@ const banner = `
1515
`
1616

1717
func ShowBanner(Version string) {
18-
fmt.Println(banner)
19-
fmt.Println("\t\t\tAuthor: SummerSec Version:", Version+" Github: https://Github.com/SummerSec\n")
20-
//log.Println(banner)
21-
//log.Println("Version:", Version)
18+
log.Println(banner)
19+
log.Println("\t\t\tAuthor: SummerSec Version:", Version+" Github: https://Github.com/SummerSec\n")
2220

2321
}

cmd/commons/core/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func ParseOptions() *Options {
7575
flag.Parse()
7676

7777
// TODO 修改版本号
78-
v := "0.0.8"
78+
v := "0.0.9"
7979

8080
ShowBanner(v)
8181

0 commit comments

Comments
 (0)