1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! askit: a simple and ergonomic CLI input library.
//!
//! Quickstart com `Result`:
//! ```no_run
//! use askit::prompt;
//!
//! fn sample() -> Result<(), askit::Error> {
//! let name: String = prompt("Name: ").get()?;
//! let age: u8 = prompt("Age [18]: ").default("18").retries(2).get()?;
//! println!("Hello, {} ({}).", name, age);
//! Ok(())
//! }
//! ```
//!
//! Quickstart com macro `input!` (return only String):
//! ```no_run
//! use askit::input;
//!
//! let name = input!("Name: ");
//! println!("Hello, {name}");
//! ```
pub use ;
/// Helper `Result<T, Error>` → forçar unwrap com panic elegante.