pub fn prompt_user(prompt_msg: &str, error_msg: &str) -> Result<String> {
    print!("{}", prompt_msg);
    let _ = stdout().flush();
    let buf = read_stdin_response()?;
    if buf.is_empty() {
        Err(eyre!(error_msg.to_string()))
    } else {
        Ok(buf)
    }
}
// Prompt the user with the message provided
Prompt the user with the message provided
Prompt the user with the message provided
pub fn prompt_user(prompt_msg: &str, error_msg: &str) -> Result<String> {
    print!("{}", prompt_msg);
    let _ = stdout().flush();
    let buf = read_stdin_response()?;
    if buf.is_empty() {
        Err(eyre!(error_msg.to_string()))
    } else {
        Ok(buf)
    }
}
pub fn prompt_user ( prompt_msg : & str , error_msg : & str ) -> Result < String > { print ! ( " " prompt_msg ) ; let _ = stdout ( ) . flush ( ) ; let buf = read_stdin_response ( ) ? ; if buf . is_empty ( ) { Err ( eyre ! ( error_msg to_string ( ) ) ) } else { Ok ( buf ) } }
Prompt the user with the message provided
Prompt the user with the message provided
prompt_msg
&str
error_msg
&str
prompt_msg
&str
error_msg
&str