webgraph-cli 0.5.0

Command line interface for the Rust port of the WebGraph framework (http://webgraph.di.unimi.it/).
Documentation
/*
 * SPDX-FileCopyrightText: 2024 Tommaso Fontana
 * SPDX-FileCopyrightText: 2026 Sebastiano Vigna
 *
 * SPDX-License-Identifier: Apache-2.0 OR MIT
 */

use anyhow::Result;
use clap::Subcommand;

pub mod ef;
pub mod eq;
pub mod symm;

/// Checks coherence of files.​
#[derive(Subcommand, Debug)]
#[command(name = "check")]
pub enum SubCommands {
    Ef(ef::CliArgs),
    Eq(eq::CliArgs),
    Symm(symm::CliArgs),
}

pub fn main(subcommand: SubCommands) -> Result<()> {
    match subcommand {
        SubCommands::Ef(args) => ef::main(args),
        SubCommands::Eq(args) => eq::main(args),
        SubCommands::Symm(args) => symm::main(args),
    }
}