crtimg 0.1.0

A CLI tool that processes a pixel art image to make it CRT-ish.
Documentation
//! # CRT-IMG
//!
//! A simple command-line tool for giving pixel art a CRT-like effect.
//! This file contains the binary entry point.
use clap::Parser;
use crtimg::cli::Cli;

/// The main entry point for the `crtimg` binary.
///
/// This function is responsible for:
/// 1. Initializing the `env_logger` for logging.
/// 2. Parsing command-line arguments into the `Cli` struct.
/// 3. Calling the `run` method to execute the main application logic.
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let log_env = env_logger::Env::default().filter_or(env_logger::DEFAULT_FILTER_ENV, "info");
    env_logger::builder().parse_env(log_env).init();
    log::trace!("Logger initialized");

    let cli = Cli::parse();
    cli.run().await?;
    Ok(())
}