pub fn string_with_default(
    text: &str,
    def: Option<impl Into<String> + Display>
) -> QueryResult<String>
Expand description

Queries the user for string input with a default.

The user can unset the value by typing a space, otherwise, if no string is specified and a deafult is given the default will be used.

Errors

Fails on io errors with the stdin and stdout.