17 lines
403 B
Go
17 lines
403 B
Go
package initialize
|
||
|
||
import (
|
||
"context"
|
||
"strings"
|
||
|
||
"gitea.micah.wiki/pandora/naive/pkg/stdinx"
|
||
)
|
||
|
||
func ReadInstallHomebrew(ctx context.Context) bool {
|
||
restartFlag, err := stdinx.ReadStr(ctx, "*** 是否需要安装Homebrew(确认:Y or Yes,按其他任意键不重启)")
|
||
if err != nil {
|
||
return false
|
||
}
|
||
return strings.EqualFold(restartFlag, "yes") || strings.EqualFold(restartFlag, "y")
|
||
}
|