diff options
| author | LLLL Colonq <llll@colonq> | 2025-07-28 01:41:31 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-07-28 01:41:31 -0400 |
| commit | 4fb92d6fa3ce2d93c2ce720429f46aa104972674 (patch) | |
| tree | 34621666e2aec4af0ae59cd7e002f5022c83dad4 /crates/client/src/main.rs | |
| parent | 86862272e9cdb7a8358db91ec4bea3edbacf2e97 (diff) | |
Update
Diffstat (limited to 'crates/client/src/main.rs')
| -rw-r--r-- | crates/client/src/main.rs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/crates/client/src/main.rs b/crates/client/src/main.rs deleted file mode 100644 index af8e753..0000000 --- a/crates/client/src/main.rs +++ /dev/null @@ -1,42 +0,0 @@ -mod common; - -#[cfg(not(target_arch = "wasm32"))] -use clap::{command, Command}; - -#[cfg(target_arch = "wasm32")] -pub fn main() {} // dummy main, real wasm32 main is lib::main_js - -#[cfg(not(target_arch = "wasm32"))] -#[tokio::main] -pub async fn main() { - let matches = command!() - .propagate_version(true) - .subcommand_required(true) - .arg_required_else_help(true) - .subcommand( - Command::new("overlay") - .about("Run the LCOLONQ model renderer in a full-screen transparent overlay") - ) - .subcommand( - Command::new("terminal") - .about("Run the LCOLONQ model renderer in a terminal") - ) - .subcommand( - Command::new("server") - .about("Run the LCOLONQ online websocket server") - ) - .get_matches(); - match matches.subcommand() { - Some(("overlay", _cm)) => { - teleia::run("LCOLONQ", 1920, 1080, teleia::Options::OVERLAY, common::overlay::Overlay::overlay).await; - }, - Some(("terminal", _cm)) => { - teleia::run("LCOLONQ", 1920, 1080, teleia::Options::HIDDEN, common::overlay::Overlay::terminal).await; - }, - Some(("server", _cm)) => { - env_logger::Builder::new().filter(None, log::LevelFilter::Info).init(); - log::info!("starting LCOLONQ server..."); - }, - _ => unreachable!("no subcommand"), - } -} |
