Skip to main content

muxr/
main.rs

1use crate::cmds::Cmd;
2
3mod cmds;
4
5#[ytil_sys::main]
6fn main() -> rootcause::Result<()> {
7    match Cmd::from_env()? {
8        Cmd::Help(help) => print!("{}", help.text()),
9        Cmd::Sessions => cmds::sessions::run()?,
10        Cmd::Start {
11            session,
12            external_layout,
13        } => cmds::start::run(&session, external_layout)?,
14    }
15    Ok(())
16}