-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add show question example #166
base: master
Are you sure you want to change the base?
Conversation
"github.com/manifoldco/promptui" | ||
) | ||
|
||
func ShowQuestion(message string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I extended this with
func ShowQuestion(message string, defaultValueFlag bool) bool
then use that flag to set Default
to either y
or n
so I can have different question types.
Thanks for writing this. I also agree that it's kind of weird that this isn't a built-in feature. |
I will look into this today. Sorry for low quality contribution. I did not get much hope of merging |
@jaredkotoff Thank you |
Resolving numerous issues like:
#81
Putting my code with low hopes of getting this merged, but if you find this useful +1
I can improve it/add to examples etc. It feels like boolean prompt should be supported out of the box.