From f79e38d49cf5c938c97216d7f8fa1bfeefb170d1 Mon Sep 17 00:00:00 2001 From: Sam Stevens Date: Mon, 2 Apr 2018 15:48:04 +0100 Subject: [PATCH] Updated messages --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 94ce5c2..dd17a7f 100644 --- a/main.go +++ b/main.go @@ -97,14 +97,14 @@ func main() { hostTemplate := "{{\"[\" | bold}}{{.Name | cyan | bold }}{{\"]\" | bold}} {{ .User |bold }} @ {{ .HostName | bold }}" templates := &promptui.SelectTemplates{ - Label: "{{ . }}", + Label: "{{ . | bold }}", Active: fmt.Sprintf(">%s", hostTemplate), Inactive: fmt.Sprintf(" %s", hostTemplate), Selected: "{{\"Connecting to\"|bold}} {{.Name|cyan|bold}}", } prompt := promptui.Select{ - Label: "Select Host/Option", + Label: "Select SSH Host", Items: hosts, Templates: templates, Size: 4, @@ -114,7 +114,7 @@ func main() { i, _, promptErr := prompt.Run() if promptErr != nil { - fmt.Print("No option selected") + fmt.Println("No option selected") return }