[][src]Function libcli::input::read_line

pub fn read_line(msg: &str, prompt: &str) -> String

Prints a message and prompt to the console Returns one line entered from stdin Includes the newline character, use .trim() to remove msg and prompt are separated because you usually want to provide msg from a list and prompt is usually the same, this alleviates the need for a read_line(format!(()) Panics if stdin can't be read