ineed 0.1.1

Lightweight CLI prompting library
Documentation
1
2
3
4
5
6
7
8
9
10
11
use ineed::prelude::*;

fn main() -> anyhow::Result<()> {
    let (name, age) = ineed::many_written("Name, age", ",")
        .until(|(_, age): &(String, i32)| *age > 5 && *age < 120)
        .prompt()?;
    println!("name={name}");
    println!("age={age}");

    Ok(())
}