feat: client-server mode

This commit is contained in:
electria 2026-08-16 12:15:46 -07:00
commit a689366324
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
7 changed files with 119 additions and 28 deletions

View file

@ -1,6 +1,15 @@
use std::env;
mod app;
mod server;
mod sysinfo_snapshot;
fn main() -> Result<(), impl std::error::Error> {
app::run()
fn main() {
match env::args().nth(1).as_deref() {
Some("server") => server::run().unwrap(),
None | Some("client") => app::run().unwrap(),
Some(s) => panic!("invalid argument: {s}"),
}
}