xacli_core/
lib.rs

1mod error;
2
3// x-release-please-start-version
4pub const VERSION: &str = "0.2.0";
5// x-release-please-end
6
7// ============================================================================
8// Core types (4 main concepts)
9// ============================================================================
10
11mod application;
12pub use application::{
13    App, AppContext, AppInfo, ComponentInfo, Context, ContextInfo, InputComponent, InputValue,
14    Output, OutputComponent, Parsed,
15};
16
17mod command;
18pub use command::{
19    Arg, ArgInfo, ArgKind, ArgType, Command, CommandInfo, Completer, Prompter, Validator,
20};
21mod io;
22pub use error::{Error, Result};
23pub use io::{InputEvent, Logger, OutputCommand, ReadEvent};
24
25/// Prelude for convenient imports
26///
27/// ```
28/// use xacli_core::prelude::*;
29/// ```
30pub mod prelude {
31    pub use crate::{
32        // Core types
33        application::App,
34    };
35}