soph_console/
lib.rs

1pub mod error;
2pub mod support;
3pub mod traits;
4
5#[derive(Clone, Default)]
6pub struct Console {
7    inner: clap::Command,
8    commands: std::collections::BTreeMap<String, clap::Command>,
9    closures: std::collections::HashMap<String, Handler>,
10}
11
12pub type Handler = Callback<clap::ArgMatches, BoxFuture<'static, Result<()>>>;
13
14// re-export
15pub use clap::*;
16pub use owo_colors::*;
17pub use soph_core::*;