webgraph_cli/from/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 arcs;
12
13/// Ingests data into graphs.
14#[derive(Subcommand, Debug)]
15#[command(name = "from")]
16pub enum SubCommands {
17 Arcs(arcs::CliArgs),
18}
19
20pub fn main(subcommand: SubCommands) -> Result<()> {
21 match subcommand {
22 SubCommands::Arcs(args) => arcs::main(args),
23 }
24}