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
13pub const COMMAND_NAME: &str = "";
14
15#[derive(Subcommand, Debug)]
16#[command(name = "analyze")]
17/// Compute statistics on a graphs.
18pub enum SubCommands {
19 Codes(codes::CliArgs),
20}
21
22pub fn main(global_args: GlobalArgs, subcommand: SubCommands) -> Result<()> {
23 match subcommand {
24 SubCommands::Codes(args) => codes::main(global_args, args),
25 }
26}