This commit is contained in:
anqiansong
2022-03-09 19:26:35 +08:00
committed by GitHub
parent 63b7d292c1
commit 4624390e54
11 changed files with 335 additions and 131 deletions

View File

@@ -40,10 +40,10 @@ var bins = []bin{
func Check(ctx *cli.Context) error {
install := ctx.Bool("install")
force := ctx.Bool("force")
return check(install, force)
return Prepare(install, force)
}
func check(install, force bool) error {
func Prepare(install, force bool) error {
pending := true
console.Info("[goctl-env]: preparing to check env")
defer func() {
@@ -56,8 +56,8 @@ func check(install, force bool) error {
} else {
console.Error(`
[goctl-env]: check env finish, some dependencies is not found in PATH, you can execute
command 'goctl env check --install' or 'goctl env install' to install it, for details,
please see 'goctl env check --help' or 'goctl env install --help'`)
command 'goctl env check --install' to install it, for details, please execute command
'goctl env check --help'`)
}
}()
for _, e := range bins {