mod ipc; mod server; mod tui; #[tokio::main] async fn main() -> eyre::Result<()> { match std::env::args().skip(1).next().as_deref() { Some("serve") | None => server::serve().await, Some("ctl") => tui::run(), _ => Err(eyre::eyre!("unknown command")), } }