pub mod app; mod component; mod explorer; use anyhow::{Context, Result}; pub fn start(root_path: std::path::PathBuf) -> Result<()> { println!("Starting the TUI editor at {:?}", root_path); let terminal = ratatui::init(); let app_result = app::App::new(&root_path) .run(terminal) .context("Failed to start the TUI editor."); ratatui::restore(); app_result }