manifoldco / promptui

Interactive prompt for command-line applications
https://www.manifold.co
BSD 3-Clause "New" or "Revised" License
6.03k stars 333 forks source link

How to remove ":" on label Select? #206

Closed razafinarivohanania closed 2 years ago

razafinarivohanania commented 2 years ago

Hello, i want to use Select with question instead of simple sentence. Like this :

        prompt := promptui.Select{
        Label: "Do you like blue color ?",
        Items: []string{"Yes", "No"},
    }

    _, likeBlue, err := prompt.Run()
    if err != nil {
        log.Fatalln(err)
    }

    fmt.Println(likeBlue)

The problem is that it outputs :

? Do you like blue color ?: 
  ▸ Yes
    No`

instead of :

? Do you like blue color ?
  ▸ Yes
    No

How can i do to overcome this? Thank you in advance :)

razafinarivohanania commented 2 years ago

Sorry, i don't remarked the "?" at the beginning of label. I close the issue.