Kaynağa Gözat

Commit 2021-04-09 05:45

zry 3 yıl önce
ebeveyn
işleme
d7ad6c58c0
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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, " > ")
 	}
 }