corelens 0.1.0

Linux TUI for CPU topology, local AI workloads, and GPU metrics
Documentation
use clap::Parser;

#[derive(Debug, Clone, Parser)]
#[command(
    name = "corelens",
    version,
    about = "Linux CPU topology and local AI workload monitor"
)]
pub struct Config {
    /// Refresh interval in milliseconds.
    #[arg(long, default_value_t = 500)]
    pub refresh_ms: u64,

    /// Ollama server base URL.
    #[arg(long, default_value = "http://127.0.0.1:11434")]
    pub ollama_url: String,

    /// Print parsed CPU topology and exit.
    #[arg(long)]
    pub debug_topology: bool,
}

impl Config {
    pub fn refresh_interval_ms(&self) -> u64 {
        self.refresh_ms.max(100)
    }
}