Skip to content

Commit db388a8

Browse files
committed
Merge pull request 'fix: update the user confirmation message' (#171) from fix/update-confirmation-message into main
Reviewed-on: https://gitea.obmondo.com/EnableIT/Linuxaid-cli/pulls/171
2 parents c0376e9 + b7981c5 commit db388a8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

cmd/linuxaid-install/install.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@ func Install() {
6969

7070
webtee.RemoteLogObmondo([]string{"echo Starting Linuxaid Install Setup "}, certname)
7171
prettyfmt.PrettyPrintf(" %s %s %s %s %s\n", prettyfmt.IconGear, prettyfmt.FontWhite("Configuring Linuxaid on"), prettyfmt.FontYellow(certname), prettyfmt.FontWhite("with puppetserver"), prettyfmt.FontYellow(puppetServer))
72-
prettyfmt.PrettyPrintf(" %s Running this tool will install and configure %s in your system.\n %s Please confirm to continue (Yes/y): ", prettyfmt.IconGear, prettyfmt.FontYellow("Openvox agent"), prettyfmt.IconGear)
72+
prettyfmt.PrettyPrintf(" %s Running this tool will install and configure %s in your system.\n %s Please confirm to continue (Yes/No)? ", prettyfmt.IconGear, prettyfmt.FontYellow("Openvox agent"), prettyfmt.IconQuestion)
7373

7474
// Accept user input for confirmation
7575
reader := bufio.NewReader(os.Stdin)
7676
input, _ := reader.ReadString('\n')
7777
input = strings.TrimSpace(input)
7878

7979
if input != "y" && input != "yes" {
80+
prettyfmt.PrettyPrintf("\n Exiting the setup...\n")
8081
return
8182
}
8283

pkg/prettyfmt/prettyfmt.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const (
1111
IconCheckFail = "❌"
1212
IconCheckPass = "✔"
1313
IconSuccess = "🎉"
14+
IconQuestion = "❔"
1415
)
1516

1617
// nolint: revive

0 commit comments

Comments
 (0)