refactor: modularize backend and frontend for better maintainability

This commit is contained in:
2026-02-23 18:51:32 +01:00
parent 34aac2da62
commit 80820013d0
5 changed files with 459 additions and 406 deletions

19
src-tauri/src/cli.rs Normal file
View File

@@ -0,0 +1,19 @@
use clap::Parser;
use std::path::PathBuf;
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
pub struct Cli {
#[arg(short, long)]
pub headless: bool,
#[arg(short, long, default_value_t = 30)]
pub duration: u64,
#[arg(short, long, default_value_t = 1000)]
pub interval: u64,
#[arg(short, long)]
pub output: Option<PathBuf>,
#[arg(short, long)]
pub gui: bool,
#[arg(short, long)]
pub file: Option<PathBuf>,
}