lexa_prompt/
lib.rs

1// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
2// ┃ Copyright: (c) 2023, Mike 'PhiSyX' S. (https://github.com/PhiSyX)         ┃
3// ┃ SPDX-License-Identifier: MPL-2.0                                          ┃
4// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
5// ┃                                                                           ┃
6// ┃  This Source Code Form is subject to the terms of the Mozilla Public      ┃
7// ┃  License, v. 2.0. If a copy of the MPL was not distributed with this      ┃
8// ┃  file, You can obtain one at https://mozilla.org/MPL/2.0/.                ┃
9// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
10
11mod choice;
12mod confirm;
13mod default;
14mod error;
15mod for_loop;
16mod interface;
17mod macros;
18mod optional;
19mod required;
20
21pub use inquire::validator::Validation;
22pub use lexa_prompt_macro::Prompt;
23
24pub use self::choice::choice;
25pub use self::confirm::{confirm, Bool};
26pub use self::default::{default, default_with_validator};
27pub use self::error::Error;
28pub use self::for_loop::{for_loop, for_loop2};
29pub use self::interface::{Choice, Prompt};
30pub use self::optional::{optional, optional_with_validator};
31pub use self::required::{required, required_with_validator};
32
33// ---- //
34// Type //
35// ---- //
36
37pub type Result<T, E = Error> = std::result::Result<T, E>;