ruida 0.1.1

Fast Rust Library and CLI to control Ruida Laser DSP Machines, with Python bindings
Documentation
use clap::Parser;

#[derive(Parser)]
#[command(name = "ruida")]
#[command(about = "Control Ruida Laser Machines from CLI")]
struct Cli {
    #[arg(short, long)]
    ip: Option<String>,
}

fn main() -> anyhow::Result<()> {
    dotenvy::dotenv().ok();
    env_logger::init();

    let args = Cli::parse();
    let ip = args
        .ip
        .unwrap_or_else(|| std::env::var("DEVICE_IP").unwrap());

    println!("Connecting to Ruida machine at {ip}");
    // call protocol::ethernet::connect(ip) or similar

    Ok(())
}