Skip to main content

get_line

Function get_line 

Source
pub fn get_line() -> Option<String>
Expand description

Get line as std::string::String

ยงExample - Echo utf-8 text

use cli_helper::cli::get_line;

fn echo() {
    println!("Echo: {}", get_line().expect("Your input was likely not UTF-8"))
}