diff --git a/gobrew.go b/gobrew.go index 6a92407..e5cb1ee 100644 --- a/gobrew.go +++ b/gobrew.go @@ -160,7 +160,7 @@ func (gb *GoBrew) Interactive(ask bool) { fmt.Println(" Please consider updating your go.mod file") c := true if ask { - c = askForConfirmation("Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?") + c = askForConfirmation("🤔 Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?") } if c { gb.Use(modVersion + "@latest") @@ -169,10 +169,10 @@ func (gb *GoBrew) Interactive(ask bool) { } if currentVersion != latestVersion { - color.Warnf("GO Installed Version (%s) and GO Latest Version (%s) are different.\n", currentVersion, latestVersion) + color.Warnf("⚠️ GO Installed Version (%s) and GO Latest Version (%s) are different.\n", currentVersion, latestVersion) c := true if ask { - c = askForConfirmation("Do you want to update GO to latest version (" + latestVersion + ")?") + c = askForConfirmation("🤔 Do you want to update GO to latest version (" + latestVersion + ")?") } if c { gb.Use(latestVersion) diff --git a/helpers.go b/helpers.go index d47ba79..76452d2 100644 --- a/helpers.go +++ b/helpers.go @@ -503,8 +503,8 @@ func askForConfirmation(s string) bool { reader := bufio.NewReader(os.Stdin) for { - fmt.Printf("%s ", s) - color.Successf("[y/n]: ") + color.Successf(s) + fmt.Print(" [y/n]: ") response, err := reader.ReadString('\n') if err != nil {