#![warn(clippy::pedantic)]
#![allow(clippy::cast_possible_truncation)]
#![allow(clippy::too_many_lines)]
#![allow(clippy::struct_field_names)]
use clap::Parser;
use std::path::PathBuf;
#[derive(Parser)]
#[command(
name = "ixd",
version = env!("CARGO_PKG_VERSION"),
about = "Background daemon for automatic indexing with safety monitoring."
)]
struct Cli {
#[arg(default_value = ".", value_name = "PATH")]
path: PathBuf,
}
fn main() -> ix::error::Result<()> {
let cli = Cli::parse();
ix::daemon::run(&cli.path)
}