Fix process blocking problem during check (#1911)

master
anqiansong 3 years ago committed by GitHub
parent e80a64fa67
commit 5e7b1f6bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,7 +83,7 @@ command 'goctl env check --install' to install it, for details, please execute c
install()
continue
}
log.Info("[goctl-env]: do you want to install %q [y: YES, n: No]", e.name)
console.Info("[goctl-env]: do you want to install %q [y: YES, n: No]", e.name)
for {
var in string
fmt.Scanln(&in)
@ -94,10 +94,10 @@ command 'goctl env check --install' to install it, for details, please execute c
brk = true
case strings.EqualFold(in, "n"):
pending = false
log.Info("[goctl-env]: %q installation is ignored", e.name)
console.Info("[goctl-env]: %q installation is ignored", e.name)
brk = true
default:
log.Error("[goctl-env]: invalid input, input 'y' for yes, 'n' for no")
console.Error("[goctl-env]: invalid input, input 'y' for yes, 'n' for no")
}
if brk {
break

@ -175,7 +175,7 @@ func println(msg interface{}) {
fmt.Println(msg)
}
var defaultConsole = new(colorConsole)
var defaultConsole = &colorConsole{enable: true}
func Success(format string, a ...interface{}) {
defaultConsole.Success(format, a...)

Loading…
Cancel
Save