webgraph_cli/check/mod.rs
1/*
2 * SPDX-FileCopyrightText: 2024 Tommaso Fontana
3 *
4 * SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
5 */
6
7use anyhow::Result;
8use clap::Subcommand;
9
10use super::GlobalArgs;
11
12pub mod ef;
13pub mod eq;
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}
22
23pub fn main(global_args: GlobalArgs, subcommand: SubCommands) -> Result<()> {
24 match subcommand {
25 SubCommands::Ef(args) => ef::main(global_args, args),
26 SubCommands::Eq(args) => eq::main(global_args, args),
27 }
28}