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
41
42
43
44
45
46
47
48
49
50
51
52
53
//! A module that provides built-in prompts.
//!
//! # Prompts
//!
//! The `prompts` module provides the following built-in prompts.
//! These built-in prompts can also be used as reference implementations when building your custom prompts.
//!
//! - [`Input`]: A prompt for general text input.
//! - [`Password`]: A text input prompt where the input is not displayed.
//! - [`Number`]: A prompt for inputting only integer values.
//! - [`Select`]: A prompt for selecting a single element from a list of options.
//! - [`MultiSelect`]: A prompt for selecting multiple elements from a list of options.
//! - [`Confirm`]: A prompt for inputting a Yes/No choice.
//!
//! # Examples
//!
//! This is an example of using a simple built-in prompt.
//!
//! ```no_run
//! use promptuity::themes::MinimalTheme;
//! use promptuity::prompts::{Input, Confirm};
//! use promptuity::{Promptuity, Term};
//!
//! # fn main() -> Result<(), promptuity::Error> {
//! let mut term = Term::default();
//! let mut theme = MinimalTheme::default();
//! let mut p = Promptuity::new(&mut term, &mut theme);
//!
//! p.begin()?;
//!
//! let name = p.prompt(Input::new("Please enter your username").with_placeholder("username"))?;
//! let full = p.prompt(Confirm::new("Are you a full-time software developer?").with_default(true))?;
//!
//! p.finish()?;
//! # Ok(())
//! # }
//! ```
pub
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;