webgraph_cli/analyze/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 crate::GlobalArgs;
8use anyhow::Result;
9use clap::Subcommand;
10
11pub mod codes;
12
13#[derive(Subcommand, Debug)]
14#[command(name = "analyze")]
15/// Compute statistics on graphs.
16pub enum SubCommands {
17 Codes(codes::CliArgs),
18}
19
20pub fn main(global_args: GlobalArgs, subcommand: SubCommands) -> Result<()> {
21 match subcommand {
22 SubCommands::Codes(args) => codes::main(global_args, args),
23 }
24}