mod main_view; use crossterm::event::{Event, KeyEvent}; pub use main_view::MainView; pub trait View { fn handle_input(&mut self, event: &Event) -> color_eyre::Result<()>; fn handle_key_input(&mut self, key: &KeyEvent) -> color_eyre::Result<()>; fn is_running(&self) -> bool; }