Skip to main content

webgraph_cli/check/
mod.rs

1/*
2 * SPDX-FileCopyrightText: 2024 Tommaso Fontana
3 * SPDX-FileCopyrightText: 2026 Sebastiano Vigna
4 *
5 * SPDX-License-Identifier: Apache-2.0 OR MIT
6 */
7
8use anyhow::Result;
9use clap::Subcommand;
10
11pub mod ef;
12pub mod eq;
13pub mod symm;
14
15/// Checks coherence of files.​
16#[derive(Subcommand, Debug)]
17#[command(name = "check")]
18pub enum SubCommands {
19    Ef(ef::CliArgs),
20    Eq(eq::CliArgs),
21    Symm(symm::CliArgs),
22}
23
24pub fn main(subcommand: SubCommands) -> Result<()> {
25    match subcommand {
26        SubCommands::Ef(args) => ef::main(args),
27        SubCommands::Eq(args) => eq::main(args),
28        SubCommands::Symm(args) => symm::main(args),
29    }
30}