Updated messages

This commit is contained in:
2018-04-02 15:48:04 +01:00
parent 3a482ca3f7
commit f79e38d49c

View File

@@ -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
}