mod app;
mod cli;
mod error;
mod models;
mod output;
mod parser;
mod platform;

use clap::Parser;

use crate::cli::Cli;
use crate::error::PortKillerError;

fn main() {
    if let Err(error) = app::run(Cli::parse()) {
        eprintln!("{error}");
        std::process::exit(error.exit_code());
    }
}

pub type Result<T> = std::result::Result<T, PortKillerError>;
