mod ui; mod accounts; mod app; use cli_log::{error, warn, info}; #[tokio::main] async fn main() -> anyhow::Result<()> { cli_log::init_cli_log!(); let mut app = app::App::new(); app.fill_test_data(); let mut ui = ui::UI::new(); if app.accounts_manager.num_accounts() == 0 { info!("No saved sessions found -> jumping into setup"); ui.setup(&mut app).await?; } ui.main(&mut app).await?; Ok(()) }