thedes_app/lib.rs
1use thiserror::Error;
2
3pub mod root;
4pub mod session;
5
6#[derive(Debug, Error)]
7pub enum Error {
8 #[error(transparent)]
9 InitRoot(#[from] root::InitError),
10 #[error(transparent)]
11 RunRoot(#[from] root::Error),
12}
13
14pub async fn run(mut app: thedes_tui::core::App) -> Result<(), Error> {
15 root::Component::new()?.run(&mut app).await?;
16 Ok(())
17}