catfood-bar 0.3.0

A system bar component of the catfood utility suite
Documentation
use catfood_bar::{handle_bar_cli, run_bar};
use clap::Parser;

#[derive(Parser)]
#[command(name = "catfood-bar")]
#[command(about = "A system bar component of the catfood utility suite")]
struct Cli {
    /// Run without spawning in a kitten panel
    #[arg(long = "no-kitten")]
    no_kitten: bool,
}

fn main() -> color_eyre::Result<()> {
    let cli = Cli::parse();

    // Handle common CLI logic
    if handle_bar_cli(cli.no_kitten) {
        // This return is unreachable - handle_bar_cli spawns panel and exits process
        // Required for type compatibility since handle_bar_cli returns bool
        return Ok(());
    }

    // Run directly with existing behavior (--no-kitten case)
    run_bar()
}