dataprof 0.7.1

High-performance data profiler with ISO 8000/25012 quality metrics for CSV, JSON/JSONL, and Parquet files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::cli::commands::Command;
use anyhow::Result;

/// Route subcommand to appropriate handler
pub fn route_command(command: Command) -> Result<()> {
    match command {
        Command::Analyze(args) => crate::cli::commands::analyze::execute(&args),
        Command::Schema(args) => crate::cli::commands::schema::execute(&args),
        Command::Count(args) => crate::cli::commands::count::execute(&args),
        #[cfg(feature = "database")]
        Command::Database(args) => crate::cli::commands::database::execute(&args),
    }
}