Function pomprt::new

source ·
pub const fn new(prompt: &str) -> Prompt<'_> 
Expand description

Construct a new Prompt with the default editor

Examples found in repository?
examples/simple.rs (line 7)
6
7
8
9
10
11
12
fn main() -> Result<(), pomprt::Error> {
    for line in pomprt::new("><> ") {
        println!("{line}");
    }

    Ok(())
}