This commit is contained in:
2026-03-27 15:57:32 -07:00
parent d8b0f9abbb
commit 1e7bb6c4ce

View File

@@ -1,30 +1,30 @@
use clap::{Parser,Subcommand};
use clap::{Parser, Subcommand};
mod net;
mod inputs;
mod inference;
mod inputs;
mod net;
mod training;
#[derive(Parser)]
#[command(author,version,about,long_about=None)]
#[command(propagate_version=true)]
struct Cli{
#[command(propagate_version = true)]
struct Cli {
#[command(subcommand)]
command:Commands,
command: Commands,
}
#[derive(Subcommand)]
enum Commands{
enum Commands {
#[command(flatten)]
Roblox(inference::Commands),
#[command(flatten)]
Source(training::Commands),
}
fn main(){
let cli=Cli::parse();
match cli.command{
Commands::Roblox(commands)=>commands.run(),
Commands::Source(commands)=>commands.run(),
fn main() {
let cli = Cli::parse();
match cli.command {
Commands::Roblox(commands) => commands.run(),
Commands::Source(commands) => commands.run(),
}
}