//! The `ravenous-tool` command-line tool. //! //! This program is meant as a helper for the ravenous project. //! #![warn(missing_docs)] #![warn(clippy::missing_docs_in_private_items)] mod tablegen; use clap::{Parser, Subcommand}; use tablegen::{table_gen, TableArgs}; #[derive(Parser, Debug)] #[command(version, about)] #[command(propagate_version = true)] /// The list of commands to run struct Arguments { /// The subcommand to run. #[command(subcommand)] command: Commands, } #[derive(Subcommand, Debug)] /// Enum representing the available commands. enum Commands { /// Generate a table from input data using the provided arguments. Tablegen(TableArgs), } fn main() { let args = Arguments::parse(); match args.command { Commands::Tablegen(args) => table_gen(&args), } }