You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if you use this, it doesn't show a default, instead it fails validation unless your answer is the default. So basically, you MUST type "Male" to get out of the prompt.
I also don't see any details on how to use the validation. I'd like to do something like this:
text_input "What IP range should the server use?" IP_RANGE "192.168.99.1/24" "Invalid IP range format." ???????
But even if this was working, I'm not sure what to include here. The name of a previously defined function?
Thanks!
The text was updated successfully, but these errors were encountered:
Perhaps this is user error with the new version, but there is no example that demonstrates how to use anything but the default when default is set.
For instance, from https://github.com/kahkhang/Inquirer.sh/blob/master/examples/text_input_example.sh, there is:
However, if you use this, it doesn't show a default, instead it fails validation unless your answer is the default. So basically, you MUST type "Male" to get out of the prompt.
I also don't see any details on how to use the validation. I'd like to do something like this:
But even if this was working, I'm not sure what to include here. The name of a previously defined function?
Thanks!
The text was updated successfully, but these errors were encountered: