pub fn prompt(message: &str, default: Option<&str>) -> Option<String>
Available on crate feature
dialogs
only.Expand description
Calls the prompt
function.
A default value can be supplied which will be returned if the user doesn’t input anything.
This function will return None
if the value of default
is None
and the user cancels
the operation.