diff options
Diffstat (limited to 'arg_picker/src/lib.rs')
| -rw-r--r-- | arg_picker/src/lib.rs | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/arg_picker/src/lib.rs b/arg_picker/src/lib.rs new file mode 100644 index 0000000..21a0d35 --- /dev/null +++ b/arg_picker/src/lib.rs @@ -0,0 +1,62 @@ +#![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::macros::arg; + + #[cfg(not(feature = "mingling_support"))] + pub use crate::IntoPicker; + + #[cfg(feature = "mingling_support")] + pub use crate::corebind::EntryPicker; +} + +/// 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}; +} + +#[cfg(feature = "mingling_support")] +mod corebind; + +#[allow(unused_imports)] +#[cfg(feature = "mingling_support")] +pub use corebind::*; |
