soph_console/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod error;
pub mod support;
pub mod traits;

#[derive(Clone, Default)]
pub struct Console {
    inner: clap::Command,
    commands: std::collections::BTreeMap<String, clap::Command>,
    closures: std::collections::HashMap<String, Handler>,
}

pub type Handler = Callback<clap::ArgMatches, BoxFuture<'static, Result<()>>>;

// re-export
pub use clap::*;
pub use owo_colors::*;
pub use soph_core::*;