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
8
9
10
11
12
13
14
pub mod error;
pub mod parse;
pub mod prompt;
pub mod typed_prompt;
pub mod validator;

pub use error::Error;
pub use prompt::Prompt;
pub use typed_prompt::TypedPrompt;
pub use validator::Validator;

pub fn prompt(message: &str) -> Prompt<'_> {
    Prompt::new(message)
}