interviewer.rs

Continuous Integration License [Crates release (latest by date) [Downloads [Docs GitHub code size in bytes

A simple CLI prompting crate for Rust.

Features include:

Usage

No need to chit-chat. Examples are much better:

```rust use interviewer::{ask, askopt, askuntil, ask_many, Separator};

// Ask once let num: i32 = ask("Enter an 32: ").unwrap_or(0);

// Ask until valid input let num: f32 = ask_until("Enter an f32: ");

// Optionally ask for a value. Empty input returns None. let s: Option = ask_opt("Enter something: ");

// Ask for multiple bools separated by a "," let bools: Vec = ask_many("Enter bools separated by a ',': ", Separator::SequenceTrim(",")).unwrap();

```