mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
版本信息输出时应用色彩参数
This commit is contained in:
16
cmd/cmd.go
16
cmd/cmd.go
@@ -80,13 +80,6 @@ func Excute() {
|
||||
fmt.Print(parser.Usage(err))
|
||||
return
|
||||
}
|
||||
if !*jsonPrint {
|
||||
printer.Version()
|
||||
}
|
||||
if *ver {
|
||||
printer.CopyRight()
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if *nocolor {
|
||||
color.NoColor = true
|
||||
@@ -94,6 +87,15 @@ func Excute() {
|
||||
color.NoColor = false
|
||||
}
|
||||
|
||||
if !*jsonPrint {
|
||||
printer.Version()
|
||||
}
|
||||
|
||||
if *ver {
|
||||
printer.CopyRight()
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
domain := *str
|
||||
|
||||
if *port == 0 {
|
||||
|
||||
Reference in New Issue
Block a user