zry 3 лет назад
Родитель
Сommit
d7ad6c58c0
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      cliack.go

+ 3 - 3
cliack.go

@@ -18,7 +18,7 @@ func Acknowledge(text string, defaultYes bool) bool {
 
 func printSimplePrompt(text string, options []string) {
 	tipstr := "(" + strings.Join(options, "/") + ")"
-	fmt.Print(text, tipstr, "> ")
+	fmt.Print(text, " ", tipstr, " > ")
 }
 
 func printComplexPromptFirst(text string, options map[string]string) string {
@@ -30,7 +30,7 @@ func printComplexPromptFirst(text string, options map[string]string) string {
 		opts = append(opts, k)
 	}
 	optstr := "(" + strings.Join(opts, "/") + ")"
-	fmt.Print(optstr, "> ")
+	fmt.Print(optstr, " > ")
 	return optstr
 }
 
@@ -64,6 +64,6 @@ func ComplexSelect(text string, options map[string]string) (k string, err error)
 			return input, nil
 		}
 		fmt.Println("Invalid input!")
-		fmt.Print(optstr, "> ")
+		fmt.Print(optstr, " > ")
 	}
 }