aboutsummaryrefslogtreecommitdiff
path: root/arg_picker/src/lib.rs
blob: c65e793bf2df979ca417b5067a211e33aa106d2b (plain) (blame)
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
#![doc = include_str!("../README.md")]

mod builtin;

mod picker;
pub use picker::*;

mod pickable;
pub use pickable::*;

mod arg;
pub use arg::*;

mod infos;
pub use infos::*;

/// Provides the specific parsing logic for command-line arguments and common utilities,
/// as well as customization of command-line argument styles.
pub mod parselib;

/// Parser-provided parseable command-line types
pub mod value;

/// The prelude module, which re-exports the most commonly used traits and types.
///
/// This module is intended to be imported with a wildcard import:
///
/// ```
/// use arg_picker::prelude::*;
/// ```
pub mod prelude {
    pub use crate::IntoPicker;
    pub use crate::macros::arg;
}

/// Re-export of the `arg_picker_macros` crate
pub mod macros {
    pub use arg_picker_macros::arg;
}

/// Provides the types necessary for implementing the `Pickable` trait
pub mod pickable_needed {
    pub use crate::{Pickable, PickerArg, PickerArgAttr, PickerArgResult, TagPhaseContext};
}

/// Provides the types necessary for implementing the `Matcher` trait
pub mod matcher_needed {
    pub use crate::PickerArgInfo;
    pub use crate::parselib::{MaskedArg, Matcher, ParserStyle};
}