dialoguer_ext/
lib.rs

1//! dialoguer-ext is a library for Rust that helps you build useful small
2//! interactive user inputs for the command line.  It provides utilities
3//! to render various simple dialogs like confirmation prompts, text
4//! inputs and more.
5//!
6//! This is a fork of dialoguer (https://github.com/console-rs/dialoguer)
7//! 
8//! Best paired with other libraries in the family:
9//!
10//! * [indicatif](https://docs.rs/indicatif)
11//! * [console](https://docs.rs/console)
12//!
13//! # Crate Contents
14//!
15//! * Confirmation prompts
16//! * Input prompts (regular and password)
17//! * Input validation
18//! * Selections prompts (single and multi)
19//! * Fuzzy select prompt
20//! * Other kind of prompts
21//! * Editor launching
22//!
23//! # Crate Features
24//!
25//! The following crate features are available:
26//! * `editor`: enables bindings to launch editor to edit strings
27//! * `fuzzy-select`: enables fuzzy select prompt
28//! * `history`: enables input prompts to be able to track history of inputs
29//! * `password`: enables password input prompt
30//! * `completion`: enables ability to implement custom tab-completion for input prompts
31//!
32//! By default `editor` and `password` are enabled.
33
34#![deny(clippy::all)]
35#![cfg_attr(docsrs, feature(doc_auto_cfg))]
36
37pub use console;
38
39#[cfg(feature = "completion")]
40pub use completion::Completion;
41#[cfg(feature = "editor")]
42pub use edit::Editor;
43pub use error::{Error, Result};
44#[cfg(feature = "history")]
45pub use history::{BasicHistory, History};
46use paging::Paging;
47pub use validate::{InputValidator, PasswordValidator};
48
49#[cfg(feature = "fuzzy-select")]
50pub use prompts::fuzzy_select::FuzzySelect;
51#[cfg(feature = "password")]
52pub use prompts::password::Password;
53pub use prompts::{
54    confirm::Confirm, input::Input, multi_select::MultiSelect, select::Select, sort::Sort,
55};
56
57#[cfg(feature = "completion")]
58mod completion;
59#[cfg(feature = "editor")]
60mod edit;
61mod error;
62#[cfg(feature = "history")]
63mod history;
64mod paging;
65mod prompts;
66pub mod theme;
67mod validate;