🗝
summary refs log tree commit diff
path: root/src/main.rs
blob: 936f37c1c9771c829a5b6b4896ce0298e0a1179b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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")),
    }
}