askit 0.2.0

A simple and semantic library to ask for user input in CLI applications. Type-safe parsing, defaults and retries.
Documentation
1
2
3
4
5
6
7
use askit::input;

fn main() {
    let name: String = input!("Your name: ");
    let age: u8 = input!("Age: ").parse().unwrap();
    println!("Hello, {name} ({age}).");
}