| 1 | mod app; |
| 2 | mod ui; |
| 3 | |
| 4 | use anyhow::Result; |
| 5 | |
| 6 | fn main() -> Result<()> { |
| 7 | // Set up logging |
| 8 | tracing_subscriber::fmt() |
| 9 | .with_env_filter( |
| 10 | tracing_subscriber::EnvFilter::try_from_default_env() |
| 11 | .unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("warn")), |
| 12 | ) |
| 13 | .init(); |
| 14 | |
| 15 | // Run the picker |
| 16 | let mut app = app::App::new()?; |
| 17 | app.run()?; |
| 18 | |
| 19 | // If an entry was selected, it's already been activated via IPC |
| 20 | Ok(()) |
| 21 | } |
| 22 |